:root {
  --ink: #0E1726;
  --ink-2: #16233A;
  --surface: #F5F7FA;
  --line: #E1E7F0;
  --grey: #5E6B82;
  --grey-2: #8A97AD;
  --rpa: #2D6BE4;
  --rpa-soft: #EAF1FE;
  --ai: #E8A13A;
  --ai-soft: #FCF3E2;
  --white: #FFFFFF;
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; }

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  min-height: 68px; column-gap: 30px;
}
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo span { color: var(--rpa); }
.logo .mark {
  background: linear-gradient(90deg, var(--rpa), var(--ai));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-size: 22px; margin-right: 8px; font-weight: 700;
}
.nav-links { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--grey); font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s, background .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; color: var(--grey);
  height: 42px; padding: 0 12px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--ink); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; min-width: 150px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(14, 23, 38, .08);
}
.lang-switch a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--grey); }
.lang-switch a:hover { background: var(--line); color: var(--ink); }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; }
.btn {
  display: inline-block;
  background: var(--ink); color: var(--white);
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .15s, background .2s;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: var(--ink-2); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
@media (max-width: 860px) {
  .nav-inner { min-height: 60px; column-gap: 12px; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; order: 3; flex-basis: 100%; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 12px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .logo { font-size: 17px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 12px; font-size: 14px; }
  .nav-toggle { width: 40px; height: 40px; }
  .lang-switch summary { height: 40px; padding: 0 9px; }
}

/* ---------- HERO ---------- */
header {
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(45,107,228,0.10), transparent 60%),
    radial-gradient(900px 480px at 12% 8%, rgba(232,161,58,0.08), transparent 62%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
/* only vertical padding: .wrap provides the side gutters */
.hero { padding-top: 84px; padding-bottom: 76px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03; letter-spacing: -0.025em; font-weight: 700;
  max-width: 15ch;
}
.hero h1 .grad-rpa { color: var(--rpa); }
.hero h1 .grad-ai  { color: var(--ai); }
.hero p.lead {
  margin-top: 26px; font-size: clamp(17px, 2.1vw, 20px);
  color: var(--grey); max-width: 56ch;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.link-quiet { color: var(--grey); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.link-quiet:hover { color: var(--ink); }
.hero-meta {
  margin-top: 54px; display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-meta div .n { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.hero-meta div .l { font-size: 13.5px; color: var(--grey); margin-top: 2px; }

/* ---------- SECTION SCAFFOLD ---------- */
section { padding: 90px 0; }
.sec-head { max-width: 62ch; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; }
.sec-head p { margin-top: 16px; color: var(--grey); font-size: 17px; }

/* ---------- COMPARE (the signature) ---------- */
#compare { background: var(--surface); }
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  position: relative;
}
.vs-badge {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
  z-index: 3; box-shadow: 0 6px 18px rgba(14,23,38,0.22);
}
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 34px 30px 30px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
}
.card.rpa::before { background: var(--rpa); }
.card.ai::before  { background: var(--ai); }
.card .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 20px; display: inline-block;
}
.card.rpa .tag { background: var(--rpa-soft); color: var(--rpa); }
.card.ai .tag  { background: var(--ai-soft);  color: #B97614; }
.card h3 { font-size: 25px; margin: 16px 0 6px; letter-spacing: -0.015em; }
.card .sub { color: var(--grey); font-size: 15px; min-height: 44px; }
.card .best {
  margin: 20px 0; padding: 14px 16px; border-radius: 10px; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--line);
}
.card .best b { font-family:'Space Grotesk',sans-serif; }

.pc-list { list-style: none; margin-top: 8px; }
.pc-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.8px; align-items: flex-start; }
.pc-list .ic { flex: 0 0 18px; margin-top: 3px; }
.pc-list.pros .ic { color: #1E9E6A; }
.pc-list.cons .ic { color: #C7566B; }
.pc-h { font-family:'IBM Plex Mono',monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-2); margin: 20px 0 4px; }

@media (max-width: 820px) {
  .compare-grid { grid-template-columns: 1fr; }
  .vs-badge { display: none; }
}

/* ---------- DECISION HELPER ---------- */
.decide {
  background: var(--ink);
  border-radius: 20px; padding: 46px 44px; color: #fff;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center;
}
.decide h2 { color: #fff; font-size: clamp(26px,3.5vw,36px); letter-spacing: -0.02em; line-height: 1.12; }
.decide .eyebrow { color: var(--grey-2); }
.decide p { color: #B7C2D6; margin-top: 14px; font-size: 16px; }
.quiz { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 26px; }
.q-line { font-family:'IBM Plex Mono',monospace; font-size: 12px; letter-spacing:0.1em; text-transform:uppercase; color: var(--grey-2); }
.q-text { font-family:'Space Grotesk',sans-serif; font-size: 20px; font-weight: 600; margin: 8px 0 20px; min-height: 56px; }
.q-opts { display: grid; gap: 10px; }
.q-opt {
  text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; padding: 13px 16px; border-radius: 10px; cursor: pointer; font-size: 14.5px;
  font-family: 'Inter', sans-serif; transition: border-color .18s, background .18s;
}
.q-opt:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.q-progress { margin-top: 18px; height: 4px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.q-progress span { display:block; height:100%; width:0; background: linear-gradient(90deg,var(--rpa),var(--ai)); transition: width .4s; }
.result { text-align: center; padding: 8px 0; }
.result .rlabel { font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--grey-2); }
.result .rverdict { font-family:'Space Grotesk',sans-serif; font-size: 30px; font-weight:700; margin: 8px 0 6px; }
.result .rverdict.is-rpa { color: #7FA9F2; }
.result .rverdict.is-ai { color: #F0BE6E; }
.result .rverdict.is-mix { background: linear-gradient(90deg,#7FA9F2,#F0BE6E); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; }
.result p { color:#B7C2D6; font-size: 15px; }
.result button { margin-top: 18px; }
.restart { background:none;border:none;color:var(--grey-2);font-size:13px;cursor:pointer;margin-top:12px;text-decoration:underline;font-family:'Inter',sans-serif; }
@media (max-width: 820px){ .decide{ grid-template-columns:1fr; padding: 34px 26px; } }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .num { font-family:'IBM Plex Mono',monospace; font-size: 13px; color: var(--grey); }
.step h3 { font-size: 18px; margin: 8px 0 6px; letter-spacing:-0.01em; }
.step p { font-size: 14.5px; color: var(--grey); }
@media (max-width: 820px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width: 480px){ .steps{ grid-template-columns:1fr; } }

/* ---------- PILOT ---------- */
#pilot { background: var(--surface); }
.pilot-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 50px 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.pilot-box::after{
  content:''; position:absolute; right:-80px; top:-80px; width: 260px; height: 260px; border-radius:50%;
  background: radial-gradient(circle,rgba(232,161,58,0.14),transparent 70%);
}
.ribbon { display:inline-block; background: var(--ai-soft); color:#B97614; font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.1em; text-transform:uppercase; padding:6px 12px; border-radius:20px; }
.pilot-box h2 { font-size: clamp(26px,3.5vw,38px); letter-spacing:-0.02em; margin:16px 0 12px; line-height:1.1; }
.pilot-box p { color: var(--grey); font-size: 16px; }
.pilot-list { list-style:none; margin-top: 6px; }
.pilot-list li { display:flex; gap:10px; padding:8px 0; font-size:15px; }
.pilot-list .ic { color: var(--rpa); flex:0 0 20px; }
@media (max-width: 820px){ .pilot-box{ grid-template-columns:1fr; padding: 36px 28px; } }

/* ---------- CONTACT ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 13px; font-family:'IBM Plex Mono',monospace; letter-spacing:0.06em; text-transform:uppercase; color: var(--grey); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 15px; border:1px solid var(--line); border-radius:10px;
  font-family:'Inter',sans-serif; font-size:15px; background: var(--white); color: var(--ink);
  transition: border-color .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--rpa); }
.field textarea { min-height: 110px; resize: vertical; }
.contact-side .row { display:flex; gap:12px; align-items:flex-start; padding: 14px 0; border-bottom:1px solid var(--line); }
.contact-side .row .k { font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color: var(--grey); flex:0 0 88px; padding-top:2px;}
.contact-side .row .v { font-size:15px; min-width:0; overflow-wrap:anywhere; }
.form-note { font-size:13px; color: var(--grey-2); margin-top: 10px; }
.form-note.ok  { color: #1E9E6A; }
.form-note.err { color: #C7566B; }
@media (max-width: 820px){ .contact-grid{ grid-template-columns:1fr; } }
.field.consent { display:flex; gap:10px; align-items:flex-start; }
.field.consent input { width:auto; flex:0 0 auto; margin-top:3px; padding:0; accent-color: var(--rpa); }
.field.consent label { font-family:'Inter',sans-serif; font-size:14px; letter-spacing:0; text-transform:none; color: var(--grey); margin:0; }
.field.consent a, .legal-body a:not(.link-quiet) { color: var(--rpa); text-decoration: underline; }

/* ---------- LEGAL (privacy policy) ---------- */
.legal h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; }
.legal .sec-head { margin-bottom: 36px; }
.sec-head .legal-updated { font-size: 13px; color: var(--grey-2); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 22px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.legal-body p { color: var(--grey); font-size: 16px; margin-bottom: 10px; }
.legal-back { margin-top: 40px; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color:#9FB0CB; padding: 46px 0; }
.foot-inner { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:center; }
footer .logo { color:#fff; }
footer a:hover { color:#fff; }
.foot-small { font-size:13px; color:#6C7C97; }

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 52px; padding-bottom: 52px; }
  .hero-actions { margin-top: 30px; }
  .hero-meta { margin-top: 40px; gap: 20px 32px; padding-top: 24px; }
  .hero-meta div .n { font-size: 26px; }
  section { padding: 60px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head p { font-size: 16px; }
  .card { padding: 28px 20px 22px; }
  .card h3 { font-size: 22px; }
  .card .sub { min-height: 0; }
  .decide { padding: 28px 20px; gap: 28px; border-radius: 16px; }
  .quiz { padding: 20px 16px; }
  .q-text { font-size: 18px; min-height: 0; }
  .pilot-box { padding: 30px 20px; gap: 24px; border-radius: 16px; }
  .pilot-box .btn-lg, #lead-form .btn-lg { display: block; width: 100%; text-align: center; }
  .contact-grid { gap: 32px; }
  .contact-side .row .k { flex-basis: 80px; }
  /* 16px keeps iOS Safari from zooming in on focus */
  .field input, .field textarea, .field select { font-size: 16px; }
  footer { padding: 36px 0; }
}

/* reveal */
.reveal { opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* ---------- ERROR PAGES (templates/bundles/TwigBundle/Exception) ---------- */
body.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-page .error-main { flex: 1; display: flex; align-items: center; padding: 72px 0 84px; }
.error-page .error-main .wrap { width: 100%; }
.error-code {
  font-size: clamp(64px, 14vw, 140px); font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--rpa);
}
.error-page h1 {
  margin-top: 22px; font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch;
}
.error-page .lead { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--grey); max-width: 52ch; }
.error-page .hero-actions { margin-top: 32px; }
.error-help { margin-top: 28px; font-size: 14px; color: var(--grey-2); }
.error-help a { color: var(--rpa); }
.error-help a:hover { text-decoration: underline; }
