:root {
  --blue: #003399;
  --blue-deep: #002273;
  --yellow: #FFCC00;
  --ink: #0B1B3F;
  --muted: #56607A;
  --paper: #FBF8F1;
  --card: #FFFFFF;
  --chat-bg: #E9EEF8;
  --line: #E3E0D6;
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; width: 150px; }
.logo svg { display: block; width: 100%; height: auto; }
.social { display: flex; gap: 8px; }
.social a {
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--blue);
}
.social a:hover { background: var(--blue); color: #fff; }

/* ---------- hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding-top: 32px; padding-bottom: 72px;
}
.kicker {
  display: inline-block; background: var(--yellow); color: var(--blue);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px 999px 999px 4px;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 850; margin: 18px 0 18px; color: var(--blue);
}
h1 span { display: block; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }

/* ---------- form ---------- */
.join { max-width: 480px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 220px; font: inherit; font-size: 1rem;
  padding: 14px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.join input[type="email"]:focus { outline: none; border-color: var(--blue); }
.btn {
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--blue); color: #fff; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--blue-deep); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin-top: 12px; }
.consent input { margin-top: 3px; accent-color: var(--blue); }
.form-status { min-height: 1.5em; font-weight: 700; margin: 10px 0 0; color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- chat ---------- */
.chat {
  background: var(--card); border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 34, 115, 0.35), 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 420px; width: 100%; justify-self: center;
}
.chat-head { background: var(--blue); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.chat-head svg { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.chat-title { font-weight: 800; line-height: 1.2; }
.chat-sub { font-size: 0.8rem; opacity: 0.8; }
.chat-body {
  background: var(--chat-bg); height: 470px; padding: 16px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden;
}
.msg { display: flex; gap: 8px; align-items: flex-end; animation: pop 0.25s ease-out; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: grid; place-items: center; font-size: 17px;
}
.bubble {
  background: #fff; border-radius: 18px 18px 18px 6px; padding: 7px 12px 8px;
  max-width: 80%; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); font-size: 0.95rem; line-height: 1.35;
}
.who { display: block; font-size: 0.75rem; font-weight: 800; margin-bottom: 1px; }
.sys {
  align-self: center; background: rgba(0, 34, 115, 0.08); color: var(--muted);
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; animation: pop 0.25s ease-out;
  max-width: 92%; text-align: center; line-height: 1.35;
}
.typing .bubble { display: flex; gap: 4px; padding: 12px 14px; }
.typing .bubble i {
  width: 7px; height: 7px; border-radius: 50%; background: #9AA3B8; display: block;
  animation: blink 1s infinite ease-in-out;
}
.typing .bubble i:nth-child(2) { animation-delay: 0.15s; }
.typing .bubble i:nth-child(3) { animation-delay: 0.3s; }

.flag-de { background: linear-gradient(#000 0 33.4%, #DD0000 33.4% 66.7%, #FFCE00 66.7%); }
.flag-es { background: linear-gradient(#AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.4%, #fff 33.4% 66.7%, #CE2B37 66.7%); }
.flag-fr { background: linear-gradient(90deg, #0055A4 0 33.4%, #fff 33.4% 66.7%, #EF4135 66.7%); }
.flag-be { background: linear-gradient(90deg, #000 0 33.4%, #FDDA24 33.4% 66.7%, #EF3340 66.7%); }
.flag-lu { background: linear-gradient(#EF3340 0 33.4%, #fff 33.4% 66.7%, #00A3E0 66.7%); }
.flag-ee { background: linear-gradient(#0072CE 0 33.4%, #000 33.4% 66.7%, #fff 66.7%); }
.flag-gr { background: repeating-linear-gradient(#0D5EAF 0 11.1%, #fff 11.1% 22.2%); }
.flag-se {
  background:
    linear-gradient(90deg, transparent 30%, #FECC00 30% 46%, transparent 46%),
    linear-gradient(transparent 42%, #FECC00 42% 58%, transparent 58%),
    #006AA7;
}
.flag-gb {
  background:
    linear-gradient(90deg, transparent 42%, #C8102E 42% 58%, transparent 58%),
    linear-gradient(transparent 42%, #C8102E 42% 58%, transparent 58%),
    linear-gradient(90deg, transparent 34%, #fff 34% 66%, transparent 66%),
    linear-gradient(transparent 34%, #fff 34% 66%, transparent 66%),
    #012169;
}
.flag-nonna { background: var(--yellow); }
.who-lu { color: #0083B3; }
.who-ee { color: #0063B4; }
.who-gr { color: #0D5EAF; }
.who-se { color: #00588C; }
.who-gb { color: #C8102E; }
.who-de { color: #B45309; }
.who-es { color: #AA151B; }
.who-it { color: #007A3D; }
.who-fr { color: #0055A4; }
.who-be { color: #8A6D00; }
.who-nonna { color: #7B2CBF; }

@keyframes pop { from { transform: translateY(8px) scale(0.96); } to { transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--blue); color: #fff; padding: 88px 0; }
.manifesto p.big {
  font-size: clamp(1.8rem, 4.4vw, 3.3rem); line-height: 1.12; font-weight: 850;
  letter-spacing: -0.02em; margin: 0; max-width: 23ch;
}
.eu {
  background: var(--yellow); color: var(--blue); padding: 0 0.18em;
  border-radius: 0.3em 0.3em 0.3em 0.08em; white-space: nowrap;
}
.manifesto p.small { font-size: 1.15rem; opacity: 0.85; max-width: 46ch; margin: 28px 0 0; }

/* ---------- facts ---------- */
.facts { padding: 88px 0 72px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--blue); margin: 0 0 32px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: var(--blue); font-weight: 850; margin-bottom: 14px;
}
.card p { margin: 0; font-size: 1.08rem; }
.card strong { display: block; color: var(--blue); margin-bottom: 6px; }

/* ---------- fund ---------- */
.fund { padding: 0 0 88px; }
.fund-box {
  background: var(--yellow); border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
}
.fund-box h2 { margin-bottom: 12px; }
.fund-box p { margin: 0; font-size: 1.1rem; max-width: 52ch; }
.counter { background: #fff; border-radius: 18px; padding: 24px; text-align: center; }
.counter .amount { font-size: 2.6rem; font-weight: 850; color: var(--blue); line-height: 1; }
.counter .label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ---------- final cta ---------- */
.cta { text-align: center; padding: 0 0 96px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin: 0 0 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.85rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ---------- privacy page ---------- */
.legal { padding: 24px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.todo { background: #FFF1B8; padding: 0 4px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 12px; padding-bottom: 56px; }
  .cards { grid-template-columns: 1fr; }
  .fund-box { grid-template-columns: 1fr; padding: 28px; }
  .manifesto, .facts { padding: 64px 0; }
  .chat-body { height: 440px; }
}
@media (max-width: 420px) {
  .logo { width: 120px; }
  .social a { padding: 6px 10px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .sys, .typing .bubble i { animation: none; }
}
