/* Design read: trust-first service landing for small EU businesses. The page is a diagnosis:
   address in, symptoms, what we fix, price, questions, request.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 4.
   Type: IBM Plex Sans (technical-manual heritage), Plex Mono only for real numbers.
   Accent: "passed / fixed" green, the colour of a check that turned OK. Error red is the only other signal.
   Shape rule: controls (buttons, inputs, pills) 8px, panels 12px. Nothing else. */

:root {
  --bg: #f2f4f3;
  --bg-tint: #e8ecea;
  --surface: #fafbfb;
  --ink: #141816;
  --ink-2: #36403b;
  --muted: #58645e;
  --line: #d5dcd8;
  --accent: #1c6b4e;
  --accent-hover: #155a41;
  --on-accent: #ffffff;
  --accent-soft: rgba(28, 107, 78, 0.08);
  --ok: #1c6b4e;
  --error: #b42318;
  --shadow: 0 1px 2px rgba(20, 40, 32, 0.06), 0 8px 24px rgba(20, 40, 32, 0.06);
  --r-control: 8px;
  --r-panel: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 10;
  --z-header: 20;
  --z-consent: 30;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Night palette built from the same green family, not a neon on black */
    --bg: #17221e;
    --bg-tint: #1b2823;
    --surface: #203029;
    --ink: #e9efec;
    --ink-2: #c3cfc9;
    --muted: #97a79f;
    --line: #2f423a;
    --accent: #8fd3b3;
    --accent-hover: #a8dfc5;
    --on-accent: #10231b;
    --accent-soft: rgba(143, 211, 179, 0.1);
    --ok: #8fd3b3;
    --error: #f29b8f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* While the language is being detected (max ~1 s), hide the text instead of flashing English */
.i18n-pending .header, .i18n-pending main, .i18n-pending .footer { visibility: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-control); z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 13px 22px; border-radius: var(--r-control); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--line); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink-2); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.textlink { background: none; border: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color 0.2s; font-size: 15px; }
.textlink:hover { text-decoration-color: var(--accent); }

/* Header */
.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.header__right { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo__mark { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.lang button { background: none; border: none; color: var(--muted); padding: 6px 10px; font-size: 13px; font-weight: 600; }
.lang button.active { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero__text { max-width: 760px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px; }
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin-bottom: 36px; }
.urlcheck { max-width: 600px; margin-bottom: 18px; }
.urlcheck__label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.urlcheck__row { display: flex; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow); }
.urlcheck__row:focus-within { border-color: var(--accent); }
.urlcheck input { flex: 1; min-width: 0; border: none; background: transparent; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); }
.urlcheck input:focus { outline: none; }
.urlcheck input::placeholder { color: var(--muted); opacity: 0.8; }

/* Sections */
.section { padding: 96px 0 104px; }
.section--tint { background: var(--bg-tint); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; margin-bottom: 12px; }
.head p { color: var(--ink-2); font-size: 17px; max-width: 60ch; }

/* Pains: toggle pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--r-control);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; font-size: 15px; text-align: left;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.pill::before {
  content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px;
  border: 1.5px solid var(--muted); transition: 0.2s var(--ease);
}
.pill:hover { border-color: var(--ink-2); }
.pill:active { transform: translateY(1px); }
.pill.active { border-color: var(--accent); background: var(--accent-soft); }
.pill.active::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pains__result {
  margin-top: 28px; max-width: 980px; padding: 22px 24px; border-radius: var(--r-panel);
  background: var(--accent-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pains__result p { flex: 1; min-width: 260px; color: var(--ink-2); }

/* Services: grouped lists, asymmetric */
.groups { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.group__title { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 8px; letter-spacing: 0; }
.group:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-content: start; }
.group:last-child .group__title { grid-column: 1 / -1; }
.item { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.item h4 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.item p { color: var(--muted); font-size: 15px; max-width: 42ch; }

/* Pricing */
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 20px; max-width: 980px;
}
.offer h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer__price { color: var(--accent); }
.offer p { color: var(--muted); max-width: 58ch; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 30px 32px 32px; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan__tag { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.plan h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.plan:not(.plan--featured) h3 { margin-top: 26px; }
.plan__price { color: var(--muted); margin-bottom: 22px; }
.plan__price b { font-size: 34px; font-weight: 500; color: var(--ink); }
.plan__price small { font-size: 15px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan li { padding-left: 24px; position: relative; color: var(--ink-2); font-size: 15px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* FAQ: open two-column list */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; max-width: 1040px; }
.faq dt { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.faq dd { color: var(--muted); font-size: 15px; max-width: 52ch; }

/* Lead form */
.lead { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.lead__intro h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; margin-bottom: 12px; }
.lead__intro > p { color: var(--ink-2); font-size: 17px; margin-bottom: 36px; }
.lead__intro h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.next { list-style: none; counter-reset: n; display: grid; gap: 14px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; color: var(--ink-2); font-size: 15px; }
.next li::before { content: counter(n); font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-weight: 500; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-control);
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.check.invalid span { color: var(--error); }
.form__chips { font-size: 14px; color: var(--ink-2); background: var(--accent-soft); padding: 10px 14px; border-radius: var(--r-control); }
.form__status { font-size: 15px; font-weight: 500; min-height: 1.4em; }
.form__status.success { color: var(--ok); }
.form__status.error { color: var(--error); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { color: var(--ink); font-size: 16px; }
.footer .textlink { font-size: 14px; color: var(--muted); }
.footer__links { display: flex; gap: 20px; align-items: center; }
.consent .textlink, .check .textlink { font-size: inherit; color: inherit; }

/* Consent */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: var(--z-consent); max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px;
  box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2);
}
.consent[hidden] { display: none; }
.consent__btns { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }

.sticky-cta { display: none; }

/* Stats panel (?stats=1) */
.stats-panel { position: fixed; right: 16px; top: 84px; z-index: var(--z-consent); background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--r-panel); font-size: 13px; max-height: 70vh; overflow: auto; box-shadow: var(--shadow); }
.stats-panel td { padding: 2px 12px 2px 0; font-family: 'IBM Plex Mono', monospace; }

/* Scroll reveal: motion only when the user allows it */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav { display: none; }
  .groups { grid-template-columns: 1fr; gap: 40px; }
  .lead { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 44px; }
  .hero__lead { font-size: 17px; }
  .urlcheck__row { flex-direction: column; padding: 8px; }
  .urlcheck input { padding: 10px 8px; }
  .section { padding: 64px 0 72px; }
  .head { margin-bottom: 32px; }
  .group:last-child { grid-template-columns: 1fr; }
  .plans, .faq, .form__row { grid-template-columns: 1fr; }
  .plan:not(.plan--featured) h3 { margin-top: 0; }
  .offer, .plan, .form { padding: 22px; }
  .header__cta { display: none; }
  .footer { padding-bottom: 96px; }
  .consent { left: 12px; right: 12px; bottom: 80px; }
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-sticky);
    text-align: center; padding: 15px; border-radius: var(--r-control); font-weight: 600;
    background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow);
  }
}
