/* Effector website.
   Layout: one centred column; a split hero (copy | pop-up over a timeline), then full-width bands.
   Dark-first like an edit suite, with a light version for people who browse in light mode. */
:root {
  --bg: #111317;
  --surface: #1a1d23;
  --surface-raised: #22262e;
  --line: #2d323c;
  --fg: #e8eaf0;
  --muted: #99a0ad;
  --accent: #4b9cf5;
  --accent-ink: #ffffff;
  --track-a: #3f6fb3;
  --track-b: #6b5ac2;
  --track-c: #2f8a7a;
  --star: #f2c14e;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f8; --surface: #ffffff; --surface-raised: #eef0f4; --line: #dadde4;
    --fg: #16181d; --muted: #5d6370; --accent: #2a77d6; --accent-ink: #ffffff;
    --track-a: #9fc0ef; --track-b: #c2b8ef; --track-c: #9fd6c9; --star: #c48a12;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f8; --surface: #ffffff; --surface-raised: #eef0f4; --line: #dadde4;
  --fg: #16181d; --muted: #5d6370; --accent: #2a77d6; --accent-ink: #ffffff;
  --track-a: #9fc0ef; --track-b: #c2b8ef; --track-c: #9fd6c9; --star: #c48a12;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; /* section titles land below the sticky bar */ }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-body);
  padding-inline: 20px;
  overflow-x: clip; /* the top bar's full-width background never causes sideways scrolling */
}
.page { max-width: 1080px; margin: 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.86em; }
code { color: var(--fg); background: var(--surface-raised); border-radius: 4px; padding: 1px 5px; }
kbd {
  display: inline-block;
  padding: 0 6px;
  margin: 0 1px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--fg);
  line-height: 1.5;
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- top bar ----
   Sticks to the top. Wide: brand, section links, theme + Buy. Narrow (≤ 760px): the links move into a
   panel opened by the menu button. The bar's background (::before) reaches the window edges. */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding-block: 14px;
}
.topbar::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 19px var(--font-display); }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--fg); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }

.icon-button {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--fg);
  transition: border-color 0.15s;
}
.icon-button:hover { border-color: var(--accent); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The theme button shows what a click does: a moon on a light page, a sun on a dark one. */
.theme-toggle svg { display: none; }
:root[data-effective-theme="light"] .icon-dark,
:root[data-effective-theme="dark"] .icon-light { display: block; }
:root:not([data-effective-theme]) .theme-toggle { display: none; } /* scripts off: nothing to click */
.menu-toggle { display: none; }

/* Language switcher: the current flag and code; opens a list of every language with its flag. */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-button { width: auto; padding: 0 10px; grid-auto-flow: column; gap: 7px; font: 600 13px var(--font-mono); }
/* flag-icons (4:3), all drawn to the same shape: shown at one size, softly rounded, with a hairline edge
   so white stripes (Poland, France) stay visible on a light page. */
.lang-menu img { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); display: block; object-fit: cover; }
.lang-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 180px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.3);
}
.lang-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--fg); text-decoration: none; font-weight: 500;
}
.lang-list a:hover { background: var(--surface-raised); }
.lang-list a[aria-current="page"] { background: var(--surface-raised); color: var(--accent); }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center;
  padding-block: 32px 56px;
}
.eyebrow { font: 500 13px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
/* Shown to visitors who came through a partner's link (site.js fills the name). */
.partner-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; color: var(--muted);
}
.partner-chip span { color: var(--star); }
.partner-chip strong { color: var(--fg); font-weight: 600; }
.partner-chip[hidden] { display: none; }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.lede kbd { color: var(--fg); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: 600 15px var(--font-body); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { transform: translateY(-1px); }
.button[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.button.wide { width: 100%; }
.button.small { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button.primary:hover { transform: none; } }

/* The pop-up floating over a stylised timeline: the one place the page shows off. */
.hero-shot { position: relative; margin: 0; padding: 36px 0 24px; display: grid; place-items: center; }
.tracks {
  position: absolute; inset: 0; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  background-image: repeating-linear-gradient(to right, transparent 0 59px, var(--line) 59px 60px);
}
.tracks span {
  position: absolute; left: var(--start); width: var(--width); height: 22%; border-radius: 4px;
}
.tracks span:nth-child(1) { top: 14%; background: var(--track-a); }
.tracks span:nth-child(2) { top: 40%; background: var(--track-b); }
.tracks span:nth-child(3) { top: 66%; background: var(--track-c); }
.hero-shot img { position: relative; width: min(370px, 92%); filter: drop-shadow(0 18px 36px rgb(0 0 0 / 0.45)); }

/* ---- timecode strip ---- */
.timecode {
  padding: 0; /* it is a <section>, but not a spaced-out one */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.timecode div { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; }
.timecode strong { font: 500 15px var(--font-mono); color: var(--fg); }
.timecode span { font-size: 14px; color: var(--muted); }

section { padding-block: clamp(56px, 8vw, 88px) 0; }

/* ---- how it works ---- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { display: grid; gap: 8px; align-content: start; }
.step {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent); font: 600 15px var(--font-mono);
}
.steps p { color: var(--muted); }

/* ---- features ---- */
.feature-rows { display: grid; gap: 56px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text { display: grid; gap: 10px; max-width: 46ch; }
.feature-text p { color: var(--muted); }
.feature img { justify-self: center; width: min(420px, 100%); border-radius: 12px; }
.small-features {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.small-features li { border-top: 2px solid var(--line); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.small-features h3 { font-size: 16px; }
.small-features p { color: var(--muted); font-size: 14.5px; }

/* ---- trust ---- */
.trust-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.trust-grid p { color: var(--muted); }
.trust-grid strong { color: var(--fg); }

/* ---- pricing ---- */
.pricing { display: grid; place-items: center; }
.price-card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px; display: grid; gap: 12px; justify-items: center; text-align: center;
}
.price { font: 800 48px/1 var(--font-display); }
.price-note { color: var(--muted); margin-bottom: 8px; }

/* ---- FAQ ---- */
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin-top: 10px; }

.footer { padding-block: 72px 40px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }

/* ---- smaller screens ----
   ≤ 980px  tablet: the hero stacks, the pop-up picture sits under the copy
   ≤ 760px  phone landscape / small tablet: menu button, features and steps in one column
   ≤ 480px  phone: one column everywhere, full-width buttons */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 24px 40px; }
  .hero-copy { max-width: 640px; }
  .hero-shot { width: min(560px, 100%); justify-self: center; }
  .small-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .site-nav {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.15s, transform 0.15s; }
  .site-nav a { padding: 12px 14px; border-radius: 9px; font-size: 17px; color: var(--fg); }
  .site-nav a:hover { background: var(--surface-raised); }
  .topbar-tools { margin-left: auto; }

  .feature, .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { gap: 24px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature-rows { gap: 48px; }
  .timecode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Steps become a list: number on the left, text beside it. */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li { grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .steps li > .step { grid-row: span 2; }
  .steps li > :not(.step) { grid-column: 2; }
}
@media (max-width: 480px) {
  .lang-button span { display: none; } /* the flag alone, to keep the bar on one line */
  body { padding-inline: 16px; }
  .topbar { gap: 12px; }
  .topbar-tools { gap: 8px; }
  .brand { font-size: 18px; }
  .lede { font-size: 17px; }
  .actions .button { flex: 1 1 100%; }
  .timecode, .small-features { grid-template-columns: minmax(0, 1fr); }
  .price-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .site-nav, .site-nav.open, .icon-button { transition: none; } }
