:root {
  --bg: #0b0d14;
  --panel: #131827;
  --line: #252d43;
  --text: #e9edf5;
  --muted: #9aa5bb;
  --green: #3be071;
  --green-ink: #04260f;
  --purple: #a23cff;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 0.8rem; }
ul { padding-left: 1.15rem; margin: 0 0 0.8rem; }
li { margin-bottom: 0.3rem; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.centre { text-align: center; margin-left: auto; margin-right: auto; }
.small { font-size: 0.9rem; color: var(--muted); }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; min-width: 0; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 7px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.brand-sub { color: var(--muted); font-size: 0.75rem; }
nav { display: flex; gap: 1.2rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; padding: 0.3rem 0; }
nav a:hover { color: var(--text); }
.menu-btn {
  display: none; background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.4rem 0.8rem; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: none; }
.lang button { background: transparent; color: var(--muted); border: 0; padding: 0.3rem 0.65rem; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }
.lang button:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; }

/* hero: text left, image right, sized to fit one screen */
.hero { padding: 1.75rem 0 0.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr clamp(14rem, 22vw, 19rem); gap: 2rem; align-items: stretch; }
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.98; margin: 0 0 0.55rem;
}
.tagline {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.18rem, 2.65vw, 1.92rem); line-height: 1.15;
  color: var(--green); margin: 0 0 0.7rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 30rem; margin: 0; }
.frame { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--panel); }
/* the image box is exactly as tall as the text next to it */
.hero-img { position: relative; width: 100%; box-shadow: 0 0 0 1px rgba(59,224,113,0.45), 0 0 50px rgba(59,224,113,0.14); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* sections */
section { padding: 2.25rem 0 0.25rem; }
#how { padding-top: 5.5rem; }
#how > .wrap > h2,
#how > .wrap > .intro { text-align: center; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 1.9rem); line-height: 1.1; margin: 0 0 0.6rem; }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.15; margin: 0 0 0.5rem; }
.intro { color: var(--muted); margin-bottom: 0.75rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.15rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* buttons */
.cta { margin-top: 1.25rem; }
.proof { color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0; }
.btn {
  display: inline-block; background: var(--green); color: var(--green-ink);
  font-weight: 600; text-decoration: none; padding: 0.65rem 1.4rem; border-radius: 6px;
}
.btn:hover { background: #62ec8c; }
.btn.purple { background: var(--purple); color: #fff; }
.btn.purple:hover { background: #b45cff; }
.btn.paypal { background: #0070ba; color: #fff; font-weight: 700; }
.btn.paypal:hover { background: #005ea6; }
.btn.big { font-size: 1.1rem; padding: 0.8rem 1.8rem; margin-top: 0.9rem; }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.9rem; }
.actions.centre { justify-content: center; }

/* screenshot rows */
.row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center; margin-top: 3rem; }
.row.flip { grid-template-columns: 1.1fr 0.9fr; }
.row.flip .text { order: 2; }
.row .text { min-width: 0; }
#how .intro + .row { margin-top: 2rem; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; max-height: 22rem; object-fit: contain; object-position: top; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0.9rem 0; }
.tags li { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.8rem; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.4rem; }
.download-panel { max-width: 38rem; border-color: rgba(59,224,113,0.45); box-shadow: 0 0 40px rgba(59,224,113,0.1); }
.cta-panel { margin-top: 2rem; }

/* faq and support side by side */
.duo { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.25rem; align-items: start; }
.faq-cat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.65rem;
  padding: 0;
  transition: border-color 0.15s ease;
}
.faq-cat[open] { border-color: rgba(59, 224, 113, 0.45); }
.faq-cat > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-cat > summary::-webkit-details-marker { display: none; }
.faq-cat > summary::after {
  content: "+";
  color: var(--green);
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  width: 1.1rem;
  text-align: center;
}
.faq-cat[open] > summary::after { content: "\2212"; }
.faq-count {
  margin-left: auto;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}
.faq-cat-body {
  border-top: 1px solid var(--line);
  padding: 0.15rem 1rem 0.5rem;
}
.faq-cat-body details { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.faq-cat-body details:last-child { border-bottom: 0; }
.faq-cat-body summary { cursor: pointer; font-weight: 600; font-size: 0.96rem; color: var(--text); }
.faq-cat-body summary:hover { color: var(--green); }
.faq-cat-body details p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.93rem; }
#support .panel h2 { font-size: 1.5rem; }
#support .panel p { font-size: 0.95rem; }

/* lightbox */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--text); }
dialog::backdrop { background: rgba(5, 6, 10, 0.88); }
dialog img { max-width: 96vw; max-height: 88vh; border-radius: 8px; margin: 0 auto; }
dialog button { display: block; margin: 0 0 0.6rem auto; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 1rem; font: inherit; cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--purple); border-radius: 8px;
  padding: 0.8rem 1.2rem; z-index: 50; max-width: 90vw; text-align: center;
}

/* footer: centred, small print */
footer { margin-top: 2.5rem; border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--muted); text-align: center; font-size: 0.8rem; line-height: 1.5; }
footer p { margin: 0 0 0.3rem; }
footer .copy { font-size: 0.85rem; }
.privacy { max-width: 46rem; margin: 1rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.privacy h2 { font-family: var(--body); font-size: 0.85rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--text); }
.privacy p { font-size: 0.75rem; }
.privacy button { background: none; border: 0; padding: 0; font: inherit; font-size: 0.75rem; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* cookie banner */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--panel); border-top: 1px solid var(--green);
  padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 40rem; font-size: 0.95rem; }
.consent-btns { display: flex; gap: 0.7rem; }
.consent .btn { border: 1px solid var(--green); cursor: pointer; font: inherit; font-weight: 600; padding: 0.55rem 1.3rem; }
.btn.outline { background: transparent; color: var(--text); border: 1px solid var(--muted); }
.btn.outline:hover { background: #1c2236; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }

/* grouped step with two screenshots */
.group { margin-top: 3rem; }
.group .row:first-child { margin-top: 0; }
.group .row + .row { margin-top: 1.75rem; }
.sub { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; margin: 0 0 0.5rem; color: var(--green); }

/* tablet and mobile */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-img { position: static; width: fit-content; max-width: 100%; margin: 0 auto; }
  .hero-img img { position: static; width: auto; max-width: 100%; height: auto; max-height: min(26vh, 12.5rem); object-fit: contain; }
  .cards { grid-template-columns: 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .row.flip .text { order: 0; }
  .duo { grid-template-columns: 1fr; gap: 1.75rem; }
  section { padding-top: 1.75rem; }
  #how { padding-top: 3.75rem; }
  .group { margin-top: 2.25rem; }
  .menu-btn { display: block; }
  .bar { flex-wrap: wrap; }
  nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 0.4rem 1.25rem 0.8rem;
  }
  nav.open { display: flex; }
  nav a { padding: 0.6rem 0; font-size: 1.05rem; }
  .zoom img { max-height: none; }
}
@media (max-width: 480px) {
  .brand-sub { font-size: 0.68rem; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 36px; height: 36px; }
  .consent-btns { width: 100%; }
  .consent-btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* V4 additions */
#features h2 { text-align: center; }
.cta { text-align: center; }

/* menu highlight follows the scroll position */
nav { gap: 0.4rem; }
nav a { padding: 0.3rem 0.75rem; border-radius: 6px; }
nav a.active { background: var(--green); color: var(--green-ink); font-weight: 600; }
nav a.active:hover { color: var(--green-ink); }

@media (max-width: 860px) {
  nav { gap: 0; }
  nav a { padding: 0.6rem 0.75rem; }
}
