/* ============================================================
   fomotools — styles
   Design tokens mirror fomo.family: deep space background,
   lowercase tight-tracked headings, indigo accent, 12px radii.
   ============================================================ */

:root {
  /* core palette (sampled from fomo.family) */
  --bg:            #060510;
  --bg-deep:       #03030a;
  --surface:       #12111a;
  --surface-2:     #17161f;
  --line:          rgba(247, 247, 247, 0.08);
  --line-strong:   rgba(247, 247, 247, 0.16);

  --text:          #f7f7f7;
  --heading:       #eaedff;
  --muted:         rgba(247, 247, 247, 0.56);
  --faint:         rgba(247, 247, 247, 0.34);

  --accent:        #606af7;
  --accent-soft:   rgba(96, 106, 247, 0.5);
  --accent-glow:   rgba(96, 106, 247, 0.22);
  --accent-text:   #8f97ff;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-sm:     8px;

  --shell:         1120px;
  --gutter:        24px;

  --font: "General Sans", "Aeonik", ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Layered aurora. Fixed, so the page moves through the light
     rather than dragging it along. */
  background-color: var(--bg);
  background-image:
    radial-gradient(62% 44% at 16% -4%,  rgba(96, 106, 247, 0.26), transparent 68%),
    radial-gradient(52% 38% at 88% 4%,   rgba(150, 104, 255, 0.17), transparent 70%),
    radial-gradient(70% 48% at 50% 104%, rgba(64, 84, 226, 0.15),  transparent 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Film grain. The single biggest difference between a flat dark page
   and one that feels like a surface. Kept very low opacity. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 140px); }

/* Section rhythm: every other band sits on a slightly raised surface with
   soft edges, so the page reads as panels of light rather than one slab. */
#features,
#customize {
  position: relative;
}
#features::before,
#customize::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, 0.022) 18%,
    rgba(255, 255, 255, 0.022) 82%,
    transparent);
}

#try {
  position: relative;
}
#try::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(58% 70% at 50% 50%, rgba(96, 106, 247, 0.11), transparent 70%);
}

/* ---------- type ---------- */

h1, h2, h3 {
  color: var(--heading);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  text-transform: lowercase;
}

/* Everything is lowercased for the fomo look, but a lone "i" pronoun reads
   as a typo rather than a style choice. */
h1 i, h2 i, h3 i {
  font-style: normal;
  text-transform: none;
}

h1 {
  font-size: clamp(44px, 9vw, 92px);
  background: linear-gradient(176deg, #ffffff 12%, #d6dbff 58%, #9aa4f5 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;   /* room for descenders once clipped */
}

h2 {
  background: linear-gradient(176deg, #f4f6ff 20%, #c3caff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.05em;
}
h2 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.05; }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }

/* Gradient headings rely on transparent text, so they'd disappear entirely
   where background-clip:text isn't honoured. Put the colour back. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h2 { background: none; color: var(--heading); }
}
@media (forced-colors: active) {
  h1, h2 {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

p { margin: 0; }

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  max-width: 54ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 56px;
}
.section-head .lede { text-align: center; }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: rgba(247, 247, 247, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 220ms ease;
}
.btn:hover { background: rgba(247, 247, 247, 0.18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, #6f79ff, #4d56e0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(120, 130, 255, 0.45),
    0 16px 44px -14px rgba(96, 106, 247, 0.85);
}
.btn--primary:hover { background: linear-gradient(180deg, #808aff, #5a63ec); }

.btn--ghost { --btn-bg: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }

.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: var(--radius-sm); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- starfield + glows ---------- */

.page { position: relative; }

/* One light source, at the top. Restraint reads as deliberate. */
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 5, 16, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(6, 5, 16, 0.86);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--heading);
}
.wordmark span { color: var(--accent-text); }

.wordmark img {
  width: 1.18em;
  height: 1.18em;
  margin-right: 0.38em;
  border-radius: 0.3em;
  box-shadow: 0 0 0 1px rgba(168, 174, 255, 0.22);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a { transition: color 140ms ease; }
.nav__links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}


/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 130px) clamp(64px, 9vw, 110px);
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  top: -260px;
  left: 50%;
  width: min(1000px, 120vw);
  height: 600px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(126, 116, 255, 0.34), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(70, 120, 255, 0.22), transparent 65%);
  animation: drift 28s ease-in-out infinite alternate;
}

/* Slow enough to never catch the eye — it just stops the light
   from looking painted on. */
@keyframes drift {
  from { transform: translateX(-50%) scale(1);            opacity: 0.9; }
  to   { transform: translateX(-46%) translateY(18px) scale(1.09); opacity: 1; }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 { max-width: 15ch; }
.hero .lede { text-align: center; }

/* The single most important instruction on the page — people don't
   expect to drag a button, so this has to read louder than a caption. */
.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  background: rgba(96, 106, 247, 0.12);
  border: 1px dashed rgba(143, 151, 255, 0.5);
  color: var(--heading);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__note svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent-text);
  animation: nudge 1.9s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---------- drag-to-install pill ---------- */

.dragzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.bookmarklet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #7982ff 0%, #5761ef 55%, #454ed9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 0 1px rgba(160, 168, 255, 0.5),
    0 22px 58px -18px rgba(96, 106, 247, 0.9);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: grab;
  user-select: none;
  transition: transform 160ms ease, box-shadow 220ms ease;
  /* Gentle idle lift so it reads as "pick me up and drag me." */
  animation: bmLift 2.6s ease-in-out infinite;
}

/* Small upward bob — toward the bookmarks bar — with a rest between cycles. */
@keyframes bmLift {
  0%, 55%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-7px); }
}

/* Hover, press and drag take over from the idle animation. */
.bookmarklet:hover { animation: none; transform: translateY(-3px) scale(1.02); }
.bookmarklet:active { animation: none; cursor: grabbing; transform: scale(0.99); }
.bookmarklet.is-dragging { animation: none; opacity: 0.55; }
.bookmarklet svg { opacity: 0.9; flex: none; }

/* Spotlight when "get it free" is pressed: a pulse plus an expanding ring,
   to point the eye straight at the button that needs dragging. */
.bookmarklet.is-flash {
  animation: bmPulse 0.6s ease-out 4;
}
.bookmarklet.is-flash::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 0 0 2px rgba(150, 158, 255, 0.9);
  pointer-events: none;
  animation: bmRing 0.6s ease-out 4;
}
@keyframes bmPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes bmRing {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.16); }
}

/* ---------- "don't see your bookmarks bar?" helper ---------- */

.barhelp {
  margin-top: 10px;
  font-size: 13.5px;
  text-align: center;
}
.barhelp summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--accent-text);
  font-weight: 600;
  background: rgba(96, 106, 247, 0.1);
  box-shadow: inset 0 0 0 1px rgba(96, 106, 247, 0.35);
  transition: background 140ms ease, box-shadow 140ms ease;
}
.barhelp summary::-webkit-details-marker { display: none; }
.barhelp summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(96, 106, 247, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  transition: transform 200ms ease;
}
.barhelp[open] summary::after { transform: rotate(45deg); }
.barhelp summary:hover {
  background: rgba(96, 106, 247, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 106, 247, 0.55);
}

.barhelp__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 14px auto 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 17, 26, 0.55);
}

.barhelp__shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.barhelp__shortcut span { color: var(--faint); font-size: 12px; }

.barhelp kbd {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(247, 247, 247, 0.08);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
}

.barhelp__alt {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
.barhelp__alt b { color: var(--text); font-weight: 600; }

/* the repeat of the button below the install steps */
.dragzone--install { margin-top: 48px; }

/* ---------- feature grid ---------- */

/* ---------- features: numbered editorial rows ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 86px);
}

.feature {
  position: relative;
  padding: 30px 22px 34px;
  margin-inline: -22px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg,
      rgba(168, 174, 255, 0.4), rgba(255, 255, 255, 0.07) 60%, transparent) 1;
  border-radius: 2px;
  transition: background 260ms ease;
}

/* A wash on hover instead of a card — the row lights up, nothing moves. */
.feature::before {
  content: "";
  position: absolute;
  inset: 1px 0 0;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(96, 106, 247, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature:hover .feature__tag span { color: #b6bcff; }
.feature__tag span { transition: color 200ms ease; }

.feature__tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature__tag span { color: var(--accent-text); }

.feature h3 { font-size: 21px; margin-bottom: 11px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 46ch; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 26px 0 28px; }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(18, 17, 26, 0.5);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-text);
}
.step p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---------- showcase ---------- */

/* Gradient hairline: a lit top edge fading to nothing, which is what
   gives a panel the sense of catching light from above. */
.showcase {
  position: relative;
  border-radius: 26px;
  border: 1px solid transparent;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(25, 24, 35, 0.92), rgba(7, 6, 18, 0.94)) padding-box,
    linear-gradient(165deg,
      rgba(168, 174, 255, 0.55),
      rgba(168, 174, 255, 0.08) 34%,
      rgba(255, 255, 255, 0.035) 70%) border-box;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 60px 130px -55px rgba(96, 106, 247, 0.65),
    0 20px 60px -40px rgba(0, 0, 0, 0.9);
}
.showcase { margin: 0; }
.showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.showcase__stage { position: relative; }

.showcase__cap {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--faint);
  min-height: 40px;
}
.showcase__cap b { color: var(--muted); font-weight: 600; }
.showcase__cap strong { color: var(--heading); font-weight: 600; }

/* ---------- screenshot hotspots ---------- */

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(96, 106, 247, 0.25),
              0 6px 16px -4px rgba(0, 0, 0, 0.8);
  transition: transform 140ms ease, box-shadow 200ms ease;
}
.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 7px rgba(96, 106, 247, 0.3),
              0 6px 16px -4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 700px) {
  .hotspot { width: 20px; height: 20px; font-size: 9.5px; }
}

/* ---------- interactive risk demo ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.demo__controls { display: grid; gap: 22px; }

.ctl label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.ctl output {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
}
.ctl__hint { margin-top: 6px; font-size: 12.5px; color: var(--faint); }

.ctl--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ctl--row label { flex: 1; }

/* range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin-top: 12px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(247, 247, 247, 0.14);
}
input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(247, 247, 247, 0.14);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 106, 247, 0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 106, 247, 0.2);
}

/* switch */
.sw {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 38px;
  height: 21px;
  margin: 0;
  border-radius: 999px;
  background: rgba(247, 247, 247, 0.15);
  position: relative;
  cursor: pointer;
  transition: background 150ms ease;
}
.sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
}
.sw:checked { background: var(--accent); }
.sw:checked::after { transform: translateX(17px); }

/* the output card — matches the real in-page overlay */
.scorecard {
  padding: 18px 18px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(26, 25, 37, 0.95), rgba(12, 11, 22, 0.95)) padding-box,
    linear-gradient(160deg, rgba(168, 174, 255, 0.4), rgba(255, 255, 255, 0.04) 60%) border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 60px -34px rgba(96, 106, 247, 0.7);
}
.scorecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.scorecard__val {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease;
}
.scorecard__bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 12px;
  background: rgba(247, 247, 247, 0.08);
  overflow: hidden;
}
.scorecard__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 320ms cubic-bezier(.3,.7,.3,1), background 260ms ease;
}
.scorecard__lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.scorecard__lines li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(247, 247, 247, 0.78);
}
.scorecard__lines i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
}

.demo__note { margin-top: 16px; font-size: 12.5px; color: var(--faint); }

@media (max-width: 820px) {
  .demo { grid-template-columns: 1fr; }
}

/* ---------- split: text beside an image ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.split__text { display: flex; flex-direction: column; gap: 18px; }
.split__text .lede { max-width: 46ch; }

.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 106, 247, 0.16);
}

.split__media {
  margin: 0;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(25, 24, 35, 0.92), rgba(7, 6, 18, 0.94)) padding-box,
    linear-gradient(165deg,
      rgba(168, 174, 255, 0.5),
      rgba(168, 174, 255, 0.07) 36%,
      rgba(255, 255, 255, 0.03) 72%) border-box;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 46px 105px -48px rgba(96, 106, 247, 0.6);
}
.split__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- faq ---------- */

.faq { max-width: 760px; margin-inline: auto; }

details.qa {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
details.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  flex: none;
  color: var(--accent-text);
  font-size: 20px;
  font-weight: 400;
  transition: transform 220ms ease;
}
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 64ch; }

/* ---------- inline links in prose ---------- */

.lede a,
details.qa p a,
.showcase__cap a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: rgba(143, 151, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease;
}
.lede a:hover,
details.qa p a:hover,
.showcase__cap a:hover { text-decoration-color: var(--accent-text); }

/* ---------- final cta ---------- */

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(64% 120% at 50% 118%, rgba(96, 106, 247, 0.3), transparent 68%),
    radial-gradient(40% 90% at 50% 0%, rgba(150, 104, 255, 0.1), transparent 70%);
}
/* gradient hairline instead of a flat rule */
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 174, 255, 0.45), transparent);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: 56px 44px;
  background: linear-gradient(180deg, rgba(8, 7, 20, 0.6), rgba(4, 4, 12, 0.85));
}
/* Explicit tracks, not auto-fit — auto-fit leaves collapsed tracks and their
   trailing gaps behind when a column is removed, which pulls the whole footer
   off-centre. The 1fr brand column pushes the link columns to the right edge. */
.footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 40px clamp(56px, 9vw, 130px);
  align-items: start;
}
.footer__brand .wordmark { font-size: 30px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer__brand .fine { color: var(--faint); font-size: 12.5px; margin-top: 22px; }

.footer h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color 140ms ease; }
.footer ul a:hover { color: var(--text); }

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 20px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, translate 200ms ease;
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}
