/* ==========================================================================
   Zed Tweaks - website
   Same language as the app: black, white and silver. White is the accent,
   colour is reserved for meaning (risk levels, "active").
   ========================================================================== */

/* ---- Fonts (local, variable, OFL) ---------------------------------------- */
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Sora Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/sora-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Sora Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/sora-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---- Tokens (taken from the app) ----------------------------------------- */
:root {
  color-scheme: dark;

  --font-ui: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Sora Variable', 'Inter Variable', 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono Variable', 'Cascadia Mono', Consolas, monospace;

  --bg-0: #060708;
  --bg-1: #0e0f11;
  --well-hi: #0b0c0e;
  --surface-1: #121417;
  --surface-1-hi: #181a1e;
  --surface-2: #1b1d21;
  --surface-3: #23262b;
  --surface-4: #2c3036;

  --line-1: rgba(255, 255, 255, .055);
  --line-2: rgba(255, 255, 255, .09);
  --line-3: rgba(255, 255, 255, .14);
  --line-4: rgba(255, 255, 255, .24);

  --text-1: #f5f5f7;
  --text-2: #a9aeb3;
  --text-3: #737980;
  --text-4: #4c5158;

  --accent: #ffffff;
  --accent-ink: #0a0a0b;
  --silver: #b9bec7;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --safe: #eceef1;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 24px;
  --ticks: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  --dots: radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.4px) 0 0 / 24px 24px;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-0);
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* The glows behind the hero and the final call are wider than the page: cut them without creating a scroller. */
main { overflow-x: clip; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Type ---------------------------------------------------------------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  color: #c3c7cd;
  text-wrap: balance;
}
h1 strong, h2 strong { font-weight: 700; color: var(--text-1); }

h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.9vw, 48px); line-height: 1.08; letter-spacing: -.038em; }
h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--line-4); }
.kicker .num { color: var(--text-1); }

.micro {
  font: 500 10.5px/1.3 var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
}

kbd {
  font: 500 11px/1 var(--font-mono);
  padding: 3px 6px; border-radius: 5px;
  background: var(--surface-2); color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px;
  border-radius: 10px;
  font: 600 15px/1 var(--font-ui);
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn .ic { width: 18px; height: 18px; }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 36px -10px rgba(255, 255, 255, .38);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px #fff, 0 14px 48px -8px rgba(255, 255, 255, .55);
}
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--ghost {
  background: var(--surface-2); color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn--ghost:hover { background: var(--surface-3); }
.btn--ghost:hover .ic { transform: translateY(2px); }
.btn--ghost .ic { transition: transform .2s var(--ease); }

.btn--sm { height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14px; gap: 8px; }
.btn--sm .ic { width: 16px; height: 16px; }
.btn--block { width: 100%; }

/* Cursor light on cards: the position comes from the script. */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .075), transparent 62%);
}
@media (hover: hover) { .spot:hover::after { opacity: 1; } }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 7, 8, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-1);
}
.nav__in { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { display: block; border-radius: 26%; }
.brand__name { font: 600 16px/1 var(--font-display); letter-spacing: -.02em; }

.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 9px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--text-2); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--text-1); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 92px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -64px 0 auto 0; height: 980px;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 0%, rgba(255, 255, 255, .1), transparent 72%),
    radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 0 45%, transparent 100%);
  mask-image: linear-gradient(#000 0 45%, transparent 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 64px;
  align-items: end;
}

.lead {
  margin-top: 24px; max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6;
  color: var(--text-2);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__price, .final__price {
  margin-top: 20px;
  font: 500 13px/1.5 var(--font-mono);
  letter-spacing: .02em;
  color: var(--text-3);
}
.hero__price b, .final__price b { color: var(--text-1); font-weight: 600; }
.hero__price .local, .final__price .local { margin-left: 10px; color: var(--text-2); }
.hero__price .sep, .final__price .sep { margin: 0 10px; color: var(--text-4); }

.spec { margin: 0; border-top: 1px solid var(--line-3); }
.spec__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-1);
}
.spec dt {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.spec dd {
  margin: 0;
  font: 600 22px/1 var(--font-display);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

/* Entrance: the copy comes up line by line, then the numbers. */
@keyframes up { from { opacity: 0; transform: translateY(14px); } }
.js .hero__copy > *, .js .spec__row { animation: up .8s var(--ease) both; }
.js .hero__copy > :nth-child(1) { animation-delay: .04s; }
.js .hero__copy > :nth-child(2) { animation-delay: .1s; }
.js .hero__copy > :nth-child(3) { animation-delay: .18s; }
.js .hero__copy > :nth-child(4) { animation-delay: .26s; }
.js .hero__copy > :nth-child(5) { animation-delay: .34s; }
.js .spec__row:nth-child(1) { animation-delay: .3s; }
.js .spec__row:nth-child(2) { animation-delay: .36s; }
.js .spec__row:nth-child(3) { animation-delay: .42s; }
.js .spec__row:nth-child(4) { animation-delay: .48s; }
.js .spec__row:nth-child(5) { animation-delay: .54s; }

/* ---- Screenshots --------------------------------------------------------- */
.shot {
  position: relative; margin: 0;
  border-radius: 12px;
  background: var(--bg-1);
  box-shadow: 0 0 0 1px var(--line-3), 0 50px 120px -34px rgba(0, 0, 0, .95);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Corner brackets, like the viewports of the app. */
.shot::before, .boost__panel::before {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  --c: rgba(255, 255, 255, .42); --l: 18px; --t: 1px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

.hero__fig { margin: clamp(48px, 6vw, 76px) 0 0; }
.hero__fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-top: 28px;
  font-size: 14.5px; line-height: 1.5; color: var(--text-3);
}
.hero__fig figcaption span {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-1);
}

.shot--hero::after {
  content: ""; position: absolute; z-index: -1; inset: -12% -6% 30% -6%;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgba(255, 255, 255, .13), transparent 70%);
}
@keyframes fade { from { opacity: 0; } }
.js .shot--hero { animation: fade 1s var(--ease) .3s both; }

/* The screenshot lies back, then stands up as it scrolls into view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__fig { perspective: 1800px; }
    .js .shot--hero {
      transform-origin: 50% 100%;
      animation: flatten linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 46%;
    }
    @keyframes flatten {
      from { transform: rotateX(16deg) scale(.92); }
      to { transform: none; }
    }
  }
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding-top: clamp(92px, 11vw, 156px); }
.head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.head__sub { margin-top: 16px; max-width: 60ch; font-size: 17px; color: var(--text-2); }

/* ---- Tour ---------------------------------------------------------------- */
.tour {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.tour__tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }

.tour__tab {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 12px;
  border: 0; border-radius: 9px;
  background: none; color: var(--text-2);
  font: 500 14.5px/1 var(--font-ui);
  text-align: left; white-space: nowrap; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.tour__tab .ic { width: 18px; height: 18px; }
.tour__tab:hover { color: var(--text-1); background: var(--surface-1); }
.tour__tab[aria-selected="true"] {
  color: var(--text-1);
  background: linear-gradient(180deg, var(--surface-1-hi), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tour__tab[aria-selected="true"]::before {
  content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 2px; background: var(--accent);
}

.js .tour__panel:not(.is-active) { display: none; }
.js .tour__panel.is-active { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
html:not(.js) .tour__panel + .tour__panel { margin-top: 56px; }

.tour .shot img { aspect-ratio: 1400 / 850; object-fit: cover; object-position: top left; }

.tour__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px;
  padding-top: 28px;
  min-height: 118px;
}
.tour__text h3 { font-size: 22px; line-height: 1.2; }
.tour__text p { color: var(--text-2); }

/* ---- Boost Mode demo ----------------------------------------------------- */
.boost { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; }

.boost__panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center;
  padding: 40px 44px 0;
  border-radius: 14px;
  background: var(--dots), var(--bg-0);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.boost__panel::before { inset: 14px; --c: rgba(255, 255, 255, .26); --l: 14px; }

.boost__label {
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 23px; padding: 0 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-3);
  font: 600 10px/1 var(--font-mono); letter-spacing: .16em;
  color: var(--text-2);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); transition: background-color .3s, box-shadow .3s; }
.boost.is-on .chip { color: var(--text-1); }
.boost.is-on .chip i { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); }

.boost__word {
  margin-top: 20px;
  font: 600 clamp(46px, 5.6vw, 70px)/1 var(--font-display);
  letter-spacing: -.045em;
  color: var(--text-3);
  transition: color .3s var(--ease);
}
.boost.is-on .boost__word { color: var(--text-1); }

.boost__figs { display: flex; margin: 24px 0 22px; }
.boost__figs div { padding-right: 28px; }
.boost__figs div + div { padding-left: 28px; border-left: 1px solid var(--line-2); }
.boost__figs dt { margin-bottom: 9px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.boost__figs dd {
  margin: 0;
  font: 600 26px/1 var(--font-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--text-3);
  transition: color .3s var(--ease);
}
.boost.is-on .boost__figs dd { color: var(--text-1); }
.boost.is-on .boost__figs div + div dd { color: var(--text-2); }

.boost__text { font-size: 15.5px; color: var(--text-1); }
.boost__promises {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--text-2);
}
.boost__promises li { display: flex; align-items: center; gap: 8px; }
.boost__promises .ic { width: 16px; height: 16px; color: var(--text-3); }

.boost__dial { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boost__press { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

.boost__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px;
  margin-top: 34px; padding: 15px 0 17px;
  border-top: 1px solid var(--line-1);
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
}
.boost__foot b { margin-left: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--text-1); }
.boost__demo { margin-left: auto; padding: 5px 8px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text-2); }

/* Power dial: the same drawing as in the app. */
.bst-power {
  position: relative;
  display: grid; place-items: center;
  width: 204px; height: 204px; padding: 0;
  border: 0; border-radius: 50%;
  background: none; color: var(--text-1);
  cursor: pointer;
  transition: transform .14s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bst-power:active { transform: scale(.97); }
.bst-power:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }

.bst-glow {
  position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .06) 38%, transparent 66%);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
}
.bst-power.is-on .bst-glow { opacity: 1; animation: bst-breathe 3.2s var(--ease) infinite; }
.bst-power:hover:not(.is-on) .bst-glow { opacity: .45; }

.bst-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; overflow: visible; }
.bst-ticks { stroke: rgba(255, 255, 255, .16); stroke-width: 9; transition: stroke .18s var(--ease); }
.bst-power:hover .bst-ticks { stroke: rgba(255, 255, 255, .3); }
.bst-power.is-on .bst-ticks { stroke: rgba(255, 255, 255, .42); }
.bst-inner { stroke: var(--line-2); stroke-width: 1; }
.bst-inner-dash { stroke: var(--line-3); stroke-width: 3; }

.bst-sweep { transform-box: view-box; transform-origin: 50% 50%; opacity: 0; transition: opacity .22s var(--ease); }
.bst-sweep circle { stroke: var(--accent); stroke-width: 9; transform: rotate(-90deg); transform-origin: 110px 110px; }
.bst-sweep-b { opacity: .45; }
.bst-sweep-c { opacity: .16; }
.bst-power.is-on .bst-sweep { opacity: 1; animation: bst-spin 5.5s linear infinite; }
.bst-power.is-busy .bst-sweep { opacity: 1; animation: bst-spin 1.1s linear infinite; }

.bst-core {
  position: relative;
  display: grid; place-items: center;
  width: 134px; height: 134px; border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, var(--surface-4), var(--surface-2) 56%, var(--surface-1));
  box-shadow:
    inset 0 0 0 1px var(--line-3),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 14px 30px -10px rgba(0, 0, 0, .9),
    0 0 34px -8px rgba(255, 255, 255, .35);
  transition: color .22s var(--ease);
}
.bst-core .ic { position: relative; z-index: 1; width: 38px; height: 38px; stroke-width: 1.8; transition: transform .18s var(--ease), opacity .18s; }
.bst-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 22%, #ffffff, #e7e9ec 58%, #c9cdd3);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .18), 0 0 40px -6px rgba(255, 255, 255, .55);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.bst-power.is-on .bst-core::after { opacity: 1; }
.bst-power.is-on .bst-core { color: var(--accent-ink); }
.bst-power:hover .bst-core .ic { transform: scale(1.06); }
.bst-power.is-busy .bst-core .ic { opacity: .55; }

@keyframes bst-spin { to { transform: rotate(360deg); } }
@keyframes bst-breathe { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }

.boost__how {
  list-style: none; margin: 0; padding: 10px 28px;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-1-hi), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.boost__how li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 19px 22px 19px 0; }
.boost__how li + li { border-top: 1px solid var(--line-1); }
.boost__how li::after {
  content: ""; position: absolute; right: 0; top: 26px; width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-4);
  transition: background-color .3s, box-shadow .3s;
}
.boost__how li.is-lit::after { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .16); }
.boost__n { padding-top: 4px; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--text-4); transition: color .3s; }
.boost__how li.is-lit .boost__n { color: var(--text-1); }
.boost__how h3 { margin-bottom: 4px; font-size: 16px; }
.boost__how p { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

/* ---- Tweak names rolling by ---------------------------------------------- */
.mq {
  display: grid; gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.mq__row {
  display: flex; gap: 10px; width: max-content;
  margin: 0; padding: 0 10px 0 0; list-style: none;
}
.mq__row.is-rolling { animation: mq 80s linear infinite; }
.mq__row--back.is-rolling { animation-direction: reverse; }
.mq:hover .mq__row, .mq.is-paused .mq__row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

.mq__row li {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px;
  border-radius: 9px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line-1);
  font-size: 13.5px; white-space: nowrap;
  color: var(--text-2);
}
.mq__row li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1.5px; background: #8a8f98; }
.mq__row .is-mod::before { background: var(--warn); }
.mq__row .is-adv::before { background: var(--danger); }

/* ---- Tweak families ------------------------------------------------------ */
.tile {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-0); color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.tile .ic { width: 18px; height: 18px; }

.fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.fam, .guard {
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-1-hi), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.fam { display: flex; flex-direction: column; padding: 22px 22px 20px; }
.fam__head { display: flex; align-items: center; gap: 12px; }
.fam__head h3 { font-size: 17px; }
.fam__n {
  margin-left: auto;
  font: 600 26px/1 var(--font-display);
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.fam > p { margin-top: 16px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.fam__ex {
  list-style: none; margin: 16px 0 22px; padding: 16px 0 0;
  border-top: 1px solid var(--line-1);
  display: grid; gap: 9px;
  font-size: 13.5px; line-height: 1.45; color: var(--text-2);
}
.fam__ex li { display: flex; gap: 10px; }
.fam__ex li::before {
  content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px;
  border-radius: 1px; background: var(--text-3);
}

/* Tick meter: the same instrument as in the app. Width is the share of the largest family (53). */
.ticks { position: relative; height: 10px; margin-top: auto; color: var(--text-4); background: var(--ticks); }
.ticks i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 53 * 100%); color: var(--accent); background: var(--ticks); }
.js .fam .ticks i { width: 0; transition: width 1.2s var(--ease) .25s; }
.js .fam.in .ticks i { width: calc(var(--v) / 53 * 100%); }

.also {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.also li {
  display: flex; gap: 14px; padding: 18px;
  border-radius: 14px; background: var(--well-hi);
  box-shadow: inset 0 0 0 1px var(--line-1);
}
.also b { display: block; margin-bottom: 4px; font: 600 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.also div > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

/* ---- Safety -------------------------------------------------------------- */
.safety { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 16px; }

.risk {
  display: flex; flex-direction: column;
  padding: 26px 28px 0;
  border-radius: 14px; overflow: hidden;
  background: var(--bg-0);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.risk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.risk__label, .risk__hint {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.risk__hint { font-size: 10.5px; color: var(--text-4); white-space: nowrap; }

/* 213 marks in 3 rows of 71: every mark is one tweak. */
.risk__grid {
  display: grid; grid-template-columns: repeat(71, minmax(0, 1fr)); gap: 7px 2px;
  margin: 22px 0 6px;
}
.risk__grid i {
  height: 38px; border-radius: 1px;
  background: var(--text-4);
  transition: background-color .4s var(--ease) calc(var(--i, 0) * 4ms), opacity .2s var(--ease);
}
.risk.in .risk__grid .s { background: var(--safe); }
.risk.in .risk__grid .m { background: var(--warn); }
.risk.in .risk__grid .a { background: var(--danger); }
.risk[data-focus="safe"] .risk__grid i:not(.s),
.risk[data-focus="mod"] .risk__grid i:not(.m),
.risk[data-focus="adv"] .risk__grid i:not(.a) { opacity: .14; }

/* Without script: one meter in three colours. */
.risk__grid:empty {
  display: block; height: 64px;
  background: linear-gradient(90deg, var(--safe) 0 55%, var(--warn) 55% 97%, var(--danger) 97%);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px);
  mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px);
}

.risk__levels { list-style: none; margin: 16px -28px 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.lvl {
  flex: 1;
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 15px 28px;
  border-top: 1px solid var(--line-1);
  transition: background-color .18s var(--ease), opacity .18s var(--ease);
}
.lvl__n { font: 600 32px/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.lvl__txt b {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
}
.lvl__txt b::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--safe); }
.lvl--mod .lvl__txt b::before { background: var(--warn); }
.lvl--adv .lvl__txt b::before { background: var(--danger); }
.lvl__txt span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.lvl__pct { font: 500 12.5px/1 var(--font-mono); letter-spacing: .04em; color: var(--text-3); }
.lvl.is-focus { background: rgba(255, 255, 255, .035); }
.risk[data-focus] .lvl:not(.is-focus) { opacity: .45; }

.guards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.guard { padding: 22px; }
.guard h3 { margin: 18px 0 8px; font-size: 17px; }
.guard p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* ---- Pricing ------------------------------------------------------------- */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.price {
  padding: 30px; border-radius: 16px;
  background: linear-gradient(180deg, #1b1d21, #111316);
  box-shadow: inset 0 0 0 1px var(--line-3), 0 44px 110px -46px rgba(0, 0, 0, .95);
}
.price > * { position: relative; z-index: 1; }
.price__name {
  font: 500 11px/1.3 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.price__amount {
  display: flex; align-items: flex-start;
  margin-top: 16px;
  font: 700 92px/.9 var(--font-display);
  letter-spacing: -.055em;
}
.price__cur { margin: .1em .1em 0 0; font-size: .44em; font-weight: 500; line-height: 1; letter-spacing: 0; color: var(--text-2); }

.price__local { margin-top: 16px; font: 500 13px/1.6 var(--font-mono); color: var(--text-3); }
.price__local b { font-weight: 600; color: var(--text-1); }
.price__local small { display: block; font-size: 12px; }

.price__list {
  list-style: none; margin: 24px 0 0; padding: 24px 0 26px;
  border-top: 1px solid var(--line-2);
  display: grid; gap: 12px;
  font-size: 15px; line-height: 1.45;
}
.price__list li { display: flex; gap: 12px; }
.price__list .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--silver); }

.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
}
.step__n { padding-top: 6px; font: 500 13px/1 var(--font-mono); letter-spacing: .1em; color: var(--text-3); }
.step h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.step p { max-width: 52ch; color: var(--text-2); }

/* ---- Creator ------------------------------------------------------------- */
.creator {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
  padding: clamp(28px, 4.4vw, 60px);
  border-radius: 18px; overflow: hidden;
  background: var(--dots), var(--bg-0);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.creator::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 0% 100%, rgba(255, 255, 255, .09), transparent 70%);
}
.creator > * { position: relative; }

.creator__by { font-size: 17px; color: var(--text-2); }
.creator__name {
  margin: 4px 0 -0.06em -0.04em; padding-right: .06em;
  font-weight: 700; font-size: clamp(84px, 14.5vw, 184px); line-height: .92; letter-spacing: -.07em;
  color: var(--text-1);
  background: linear-gradient(180deg, #ffffff 18%, #c9cdd3 58%, #7d828a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creator__text { max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--text-2); }

.handle { margin-top: 28px; }
.handle__label {
  display: block; margin-bottom: 10px;
  font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
}
.handle__btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 430px; height: 58px; padding: 0 9px 0 16px;
  border: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--text-1);
  box-shadow: inset 0 0 0 1px var(--line-3);
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.handle__btn:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-4); }
.handle__logo { width: 22px; height: 22px; }
.handle__name { margin-right: auto; overflow: hidden; text-overflow: ellipsis; font: 500 17px/1 var(--font-mono); letter-spacing: -.01em; }
.handle__act {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 40px; padding: 0 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 13.5px/1 var(--font-ui);
  transition: transform .14s var(--ease);
}
.handle__act .ic { width: 15px; height: 15px; }
.handle__btn:active .handle__act { transform: scale(.96); }
.creator__note { margin-top: 14px; font-size: 13.5px; color: var(--text-3); }
.creator__note b { font-weight: 600; color: var(--text-2); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px;
  font: 600 18px/1.35 var(--font-display); letter-spacing: -.015em;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.faq summary:hover .ic { color: var(--text-1); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--text-1); }
.faq details p { max-width: 68ch; padding: 0 44px 24px 2px; color: var(--text-2); }
.js .faq details[open] p { animation: panel-in .35s var(--ease); }

/* ---- Final call ---------------------------------------------------------- */
.final {
  position: relative;
  padding: clamp(110px, 13vw, 180px) 0 clamp(96px, 11vw, 150px);
  text-align: center;
}
.final::before {
  content: ""; position: absolute; z-index: -1; inset: 12% 0 0 0; pointer-events: none;
  background:
    radial-gradient(42% 52% at 50% 46%, rgba(255, 255, 255, .09), transparent 72%),
    radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(48% 58% at 50% 46%, #000, transparent 100%);
  mask-image: radial-gradient(48% 58% at 50% 46%, #000, transparent 100%);
}
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__logo { display: block; margin-bottom: 30px; border-radius: 24%; box-shadow: 0 0 80px -6px rgba(255, 255, 255, .26); }
.final__in > p { margin-top: 16px; font-size: 17px; color: var(--text-2); }
.final .btn { margin-top: 32px; }
.final .final__price { margin-top: 20px; font-size: 13px; color: var(--text-3); }

/* ---- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line-1); padding: 28px 0 36px; }
.foot__in { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.foot__legal { flex: 1 1 320px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.foot__link { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.foot__link:hover { color: var(--text-1); }

/* ---- Reveal on scroll ---------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }

  .boost { grid-template-columns: minmax(0, 1fr); }
  .fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: minmax(0, 1fr); }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .price { max-width: 480px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  .tour { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tour__tabs {
    position: static; flex-direction: row; gap: 6px;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
    overflow-x: auto; scrollbar-width: none;
  }
  .tour__tabs::-webkit-scrollbar { display: none; }
  .tour__tab { flex: none; height: 38px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
  .tour__tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
  .tour__tab[aria-selected="true"]::before { display: none; }
  .tour__text { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; min-height: 0; }

  .creator { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 720px) {
  .boost__panel { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding: 32px 24px 0; }
  .boost__dial { order: -1; }
  .boost__main { text-align: left; }
  .boost__foot { margin-top: 26px; }
  .boost__demo { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .fams, .also, .guards { grid-template-columns: minmax(0, 1fr); }
  .hero__cta .btn { flex: 1 1 100%; }
  .shot, .shot img { border-radius: 8px; }
  .shot::before { inset: -6px; --l: 12px; }
  .bst-power { width: 184px; height: 184px; }
  .bst-core { width: 120px; height: 120px; }
  .boost__how { padding: 6px 20px; }
  .risk { padding: 22px 20px 0; }
  .risk__grid { gap: 5px 1px; }
  .risk__grid i { height: 30px; }
  .risk__levels { margin-inline: -20px; }
  .lvl { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding: 14px 20px; }
  .lvl__n { font-size: 27px; }
  .risk__hint { display: none; }
  .price { padding: 24px; }
  .price__amount { font-size: 76px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); padding: 24px 0; }
  .handle__name { font-size: 15.5px; }
  .faq summary { font-size: 17px; padding: 20px 2px; }
  .faq details p { padding-right: 8px; }
}

@media (max-width: 400px) {
  .nav__cta-long { display: none; }
}

/* Visitors who turned animations off in Windows (common on a tuned gaming PC) keep the gentle effects:
   things fade in place instead of travelling, the page does not glide, and the 3D tilt of the hero
   screenshot (declared above for "no-preference" only) stays off. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  @keyframes up { from { opacity: 0; } }
  @keyframes panel-in { from { opacity: 0; } }
  .mq__row.is-rolling { animation-duration: 120s; }
}
