/* aiforces.pl — single stylesheet, shared by PL and EN pages.
   One accent colour, greyscale everything else, borders instead of shadows. */

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #faf9f7;
  --bg-alt: #f2f0ec;
  --surface: #ffffff;

  --ink: #1a1a1a;
  --ink-soft: #55524e;
  --ink-faint: #85817b;

  --line: #e3e0da;
  --line-strong: #cfcbc3;

  --accent: #9e3f16;
  --accent-hover: #82330f;
  --accent-ink: #ffffff;

  --focus: #1a1a1a;

  --measure: 68rem;
  --measure-narrow: 44rem;
  --gap: 1.5rem;
  --section-y: 6.5rem;
  --radius: 4px;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --step-3: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f;
    --bg-alt: #1c1a17;
    --surface: #1a1815;

    --ink: #ede9e3;
    --ink-soft: #b3ada4;
    --ink-faint: #857f76;

    --line: #2e2b26;
    --line-strong: #423e37;

    --accent: #e8875c;
    --accent-hover: #f0a181;
    --accent-ink: #1a0e07;

    --focus: #e8875c;
  }
}

/* ---------- reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

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

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section { padding-block: var(--section-y); }
section + section { border-top: 1px solid var(--line); }

.narrow { max-width: var(--measure-narrow); }

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 46ch;
}

.section-head { margin-bottom: 3.25rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.85rem; max-width: 52ch; }

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.9375rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.brand span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-inline-start: auto;
  font-size: 0.9375rem;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

.header-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline-start: auto;
}
.site-nav + .header-end { margin-inline-start: 0; }

.lang {
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.lang:hover { color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 60rem) {
  .site-nav { display: none; }
}

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

.hero { padding-block: clamp(3.5rem, 2rem + 9vw, 8rem) 4.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.75rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero-micro {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
  max-width: 48ch;
}

/* ---------- trust bar ---------- */

.trustbar {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 1.15rem;
}
.trustbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.trustbar li:not(:last-child)::after {
  content: "\00B7";
  margin-inline-start: 1.25rem;
  color: var(--line-strong);
}

/* ---------- contrast rows (problem section) ---------- */

.contrast {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.contrast li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.contrast .from { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.contrast .arrow { color: var(--accent); font-size: 0.875rem; }
.contrast .to { font-weight: 500; }

@media (max-width: 46rem) {
  .contrast li { grid-template-columns: 1fr; gap: 0.35rem; }
  .contrast .arrow { display: none; }
}

/* ---------- cards grid ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card h3 { margin-top: 0.35rem; }
.card > p:first-of-type { color: var(--ink-soft); }

.card ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.card ul li { padding-inline-start: 1.1rem; position: relative; }
.card ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--line-strong);
}

.card .outcome {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.steps h3 { margin: 0.6rem 0 0.5rem; }
.steps p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- plain columns (engagement, why) ---------- */

.cols {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.cols h3 { margin-bottom: 0.6rem; }
.cols p { color: var(--ink-soft); font-size: 0.9375rem; }

.facts { display: flex; flex-direction: column; gap: 1.5rem; }
.facts li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts p { color: var(--ink-soft); }
.facts strong { color: var(--ink); font-weight: 600; }

@media (max-width: 40rem) {
  .facts li { grid-template-columns: 1fr; gap: 0.4rem; }
}

.footnote {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  max-width: 60ch;
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.checklist { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.75rem; }
.checklist li {
  position: relative;
  padding-inline-start: 1.6rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 0.55rem;
  height: 0.3rem;
  border-inline-start: 1.5px solid var(--accent);
  border-block-end: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field .req { color: var(--accent); }

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 6.5rem; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.consent input { margin-top: 0.25rem; accent-color: var(--accent); width: 1rem; height: 1rem; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  font-size: 0.9375rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.form-status[hidden] { display: none; }
.form-status[data-state="error"] { border-color: var(--accent); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- legal pages ---------- */

.prose { max-width: var(--measure-narrow); }
.prose h2 { margin-top: 2.75rem; font-size: var(--step-1); }
.prose h1 + p { margin-top: 1.25rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose ul li { padding-inline-start: 1.1rem; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--line-strong);
}
.prose a { color: var(--accent); }

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

/* Hidden only where scripting can bring it back — with JS off or broken,
   the content is simply visible. */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 46rem) {
  :root { --section-y: 3.75rem; }
}
