/* Europlabs — single stylesheet, no external requests, no webfonts. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-inset: #eef1f5;
  --fg: #14181f;
  --fg-muted: #565f6d;
  --fg-faint: #646c7a;
  --line: #dfe3ea;
  --line-soft: #ecEFF4;

  --accent: #1d4ed8;
  --accent-hover: #1a3fb0;
  --accent-soft: #eaf0ff;
  --accent-fg: #ffffff;
  --mark-fg: #ffffff;

  --ok: #0f7b52;
  --ok-soft: #e6f5ee;
  --warn: #92400e;
  --warn-soft: #fdf3e3;

  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.14);
  --shadow-lg: 0 2px 4px rgba(16,24,40,.05), 0 20px 44px -20px rgba(16,24,40,.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1319;
    --bg-soft: #161b23;
    --bg-inset: #1c222c;
    --fg: #e9edf3;
    --fg-muted: #a4aebd;
    --fg-faint: #7d8797;
    --line: #2a323e;
    --line-soft: #222834;
    --accent: #7ea2ff;
    --accent-hover: #9db9ff;
    --accent-soft: #182135;
    --accent-fg: #0b1020;
    --mark-fg: #0f1319;
    --ok: #4ade9f;
    --ok-soft: #12241d;
    --warn: #fbbf6b;
    --warn-soft: #2a2013;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 20px 44px -20px rgba(0,0,0,.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -.022em; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1rem; }
p, ul, ol, dl, table, figure, pre { margin: 0 0 1.1rem; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--accent-hover); }

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

mark.todo {
  background: var(--warn-soft);
  color: var(--warn);
  padding: 0 .3em;
  border-radius: 4px;
  border: 1px dashed currentColor;
  font-size: .93em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-fg);
  padding: .7rem 1.1rem; border-radius: 0 0 8px 8px; font-weight: 600;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--accent-fg); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--fg); text-decoration: none; font-weight: 680;
  font-size: 1.09rem; letter-spacing: -.02em; flex: 0 0 auto;
}
.brand-mark { color: var(--accent); flex: 0 0 auto; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.primary-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
/* Scoped to the list so it cannot outrank .btn on the nav CTA. */
.primary-nav ul a {
  color: var(--fg-muted); text-decoration: none; font-size: .95rem;
  font-weight: 520; padding: .35rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.primary-nav ul a:hover { color: var(--fg); }
.primary-nav ul a.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.primary-nav .nav-cta { color: var(--accent-fg); border-bottom: 0; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  border-radius: 9px; padding: .5rem .75rem; font: inherit; font-size: .9rem;
  font-weight: 560; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

@media (max-width: 900px) {
  /* Baseline (no JavaScript): the nav is a stacked list under the header. */
  .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  .primary-nav {
    margin-left: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line-soft);
  }
  .primary-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .primary-nav li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav ul a { padding: .85rem 0; width: 100%; border-bottom: 0; font-size: 1rem; }
  .primary-nav .nav-cta { margin: 1rem 0 .2rem; justify-content: center; }

  /* Enhanced (JavaScript available): collapse the same markup behind a button. */
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-top: 0; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1.1rem; box-shadow: var(--shadow); z-index: 60;
  }
  .js .primary-nav.is-open { display: flex; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: .97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { padding: .5rem .95rem; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg); }
.btn-ghost:hover { border-color: var(--fg-faint); color: var(--fg); background: var(--bg-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }

/* ---------------------------------------------------------------- sections */
section { padding-block: clamp(3rem, 6vw, 5rem); }
section.tight { padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.bg-soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 680; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.lede { font-size: 1.16rem; color: var(--fg-muted); max-width: 62ch; }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(3.4rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.hero h1 { margin-bottom: .7rem; }
.hero .lede { font-size: 1.22rem; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; margin-top: 2rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--fg-muted); list-style: none; padding-left: 0;
}
.trust-strip li { display: flex; align-items: center; gap: .45rem; }
.trust-strip li::before {
  content: ""; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%;
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}

/* score card in hero */
.scorecard {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem; font-size: .93rem;
}
.scorecard-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.scorecard-head strong { font-size: 1rem; }
.scorecard-head span { color: var(--fg-faint); font-size: .82rem; font-family: var(--mono); }
.meter { margin-bottom: 1rem; }
.meter-top { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .88rem; }
.meter-top b { font-variant-numeric: tabular-nums; font-weight: 620; }
.meter-track { height: 7px; background: var(--bg-inset); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.meter-fill.is-ok { background: var(--ok); }
.meter-fill.is-warn { background: var(--warn); }
.scorecard-foot {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  color: var(--fg-muted); font-size: .85rem;
}

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h2, .card h3 { font-size: 1.18rem; letter-spacing: -.015em; margin-bottom: .45rem; }
.card p { color: var(--fg-muted); font-size: .96rem; }
.card .card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .93rem; }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem;
  font-weight: 700; font-size: .95rem;
}

a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }

/* numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.steps > li {
  counter-increment: step; position: relative; padding-left: 3.4rem;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps h2, .steps h3 { font-size: 1.18rem; letter-spacing: -.015em; margin-bottom: .3rem; }
.steps p { color: var(--fg-muted); font-size: .96rem; }

/* checklist */
.ticks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.85rem; color: var(--fg-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 1.05rem; height: .55rem; border-left: 2.2px solid var(--ok);
  border-bottom: 2.2px solid var(--ok); transform: rotate(-45deg);
}
.ticks strong { color: var(--fg); font-weight: 620; }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; }
.price-card h2 { font-size: 1.32rem; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -.7rem; left: 1.5rem; background: var(--accent);
  color: var(--accent-fg); font-size: .74rem; font-weight: 680; letter-spacing: .05em;
  text-transform: uppercase; padding: .22rem .6rem; border-radius: 99px;
}
.price {
  font-size: 2.2rem; font-weight: 680; letter-spacing: -.03em; margin: .4rem 0 .1rem;
  font-variant-numeric: tabular-nums;
}
.price small { font-size: .95rem; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }
.price-note { font-size: .87rem; color: var(--fg-faint); margin-bottom: 1.2rem; }
.price-card .ticks { margin: 1.2rem 0; font-size: .94rem; }

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.1rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); border-bottom-width: 2px; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.6rem; padding-top: .2rem; }
.prose h3 { margin-top: 1.9rem; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--fg-faint); }
.prose blockquote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.3rem;
  border-left: 3px solid var(--accent); color: var(--fg-muted); font-style: normal;
}
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--bg-inset);
  padding: .12em .4em; border-radius: 5px;
}
.prose pre {
  background: var(--bg-inset); padding: 1rem 1.1rem; border-radius: var(--radius);
  overflow-x: auto; font-size: .88rem; line-height: 1.55;
}
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.callout {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.15rem 1.3rem; margin: 1.7rem 0;
  font-size: .96rem;
}
.callout h2, .callout h3, .callout h4 { margin-bottom: .35rem; font-size: 1rem; letter-spacing: -.01em; }

.meta { color: var(--fg-faint); font-size: .88rem; margin-bottom: 1.6rem; }
.meta time { font-variant-numeric: tabular-nums; }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2.2rem; }
.toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-muted); margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }

/* ---------------------------------------------------------------- breadcrumb */
.breadcrumb { padding-block: 1rem .2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--fg-faint); }
.breadcrumb li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---------------------------------------------------------------- faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 600;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.55rem;
  width: .55rem; height: .55rem; border-right: 2px solid var(--fg-faint);
  border-bottom: 2px solid var(--fg-faint); transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body { padding-bottom: 1.3rem; color: var(--fg-muted); max-width: 74ch; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .38rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field .hint { font-size: .83rem; color: var(--fg-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px; padding: .68rem .8rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.req { color: var(--warn); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--fg-muted); }
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .28rem; flex: 0 0 auto; }
.form-note { font-size: .87rem; color: var(--fg-faint); margin-top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- cta */
.cta-band { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.cta-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .35rem; }
.cta-inner p { color: var(--fg-muted); margin: 0; max-width: 52ch; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 3rem 1.6rem; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-about p { color: var(--fg-muted); margin: .9rem 0; max-width: 38ch; }
.footer-about .brand { font-size: 1rem; }
.site-footer address { font-style: normal; color: var(--fg-muted); line-height: 1.75; }
.site-footer address a { color: var(--fg-muted); }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-faint); margin-bottom: .85rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--fg-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  color: var(--fg-faint); font-size: .86rem;
}
.footer-bar p { margin: 0; }

/* ---------------------------------------------------------------- misc */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.error-page .code { font-size: 4.5rem; font-weight: 700; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print {
  .site-header, .site-footer, .btn-row, .cta-band, .breadcrumb { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
