/* Boost Europe Club — site stylesheet
   Tokens sampled from the flyer's vector data (Boost-Europe-Club-Flyer-EN.pdf). */

:root {
  --blue: #0028d2;      /* electric blue, hero ground */
  --magenta: #e5398c;   /* accent, second headline line */
  --gold: #f2b73d;      /* accent, "Europe" */
  --cream: #f3ede3;     /* content ground */
  --navy: #05051f;      /* call-out ground, headline ink on cream */
  --ink: #121212;
  --muted: #5c5a55;
  --faint: #8d8a83;
  --line: rgba(5, 5, 31, 0.12);
  --white: #ffffff;

  --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  max-width: 44em;
}
.kicker {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 1.2em;
}
.kicker.gold { color: var(--gold); }
.kicker.muted { color: var(--faint); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 120px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--blue); color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .lang { font-family: var(--ui); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.45); padding: 5px 9px; border-radius: 999px; opacity: 1; }
.nav .btn { padding: 9px 16px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1rem; text-decoration: none; padding: 14px 22px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; line-height: 1.1; transition: transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--magenta); color: var(--white); border-color: var(--magenta); }
.btn.primary:hover { background: #d12a7c; border-color: #d12a7c; }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn.ghost:hover { border-color: var(--white); }
.btn.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.dark:hover { background: #14143a; }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(120% 90% at 100% 100%, rgba(229,57,140,0.28), transparent 60%);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--white);
  padding-block: clamp(72px, 12vw, 160px) clamp(56px, 8vw, 110px);
  min-height: 82vh; display: flex; align-items: flex-end;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--magenta); }
.hero h1 .gold { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,0.9); margin-top: 1.4em; }
.hero .kicker { color: var(--gold); }
.hero .foot { margin-top: 3em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 18px; }

/* ── Content blocks ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.item { border-top: 1px solid var(--line); padding-top: 18px; }
.item .num { font-family: var(--ui); font-weight: 600; font-size: 0.8rem; color: var(--magenta); margin-right: 10px; }
.item h3 { display: inline; }
.item p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.item .src { font-size: 0.8rem; color: var(--faint); }
.item .src a { color: var(--faint); }

.card { background: var(--navy); color: var(--white); padding: 28px 26px 30px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.card .kicker { margin-bottom: 0.4em; }
.card h3 { color: var(--white); font-size: 1.35rem; }
.card p { color: rgba(255,255,255,0.78); font-size: 0.97rem; margin: 0; }
.card .bar { width: 36px; height: 3px; background: var(--magenta); margin-top: auto; }
.card .bar.gold { background: var(--gold); }

.callout {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
  background-image: radial-gradient(90% 100% at 100% 0%, rgba(229,57,140,0.22), transparent 60%);
}
.callout .kicker { color: var(--magenta); }
.callout h2, .callout h3 { color: var(--white); }
.callout p { color: rgba(255,255,255,0.85); }
.callout .accent { color: var(--magenta); }
.callout .rule-left { border-left: 3px solid var(--magenta); padding-left: 22px; }

.band { background: var(--blue); color: var(--white); }
.band h2 { color: var(--white); }
.band .lead { color: rgba(255,255,255,0.9); }
.band .kicker { color: var(--gold); }
.band .item { border-top-color: rgba(255,255,255,0.28); }
.band .item p { color: rgba(255,255,255,0.8); }
.band .item h3 { color: var(--white); }
.band .item .num { color: var(--gold); }

.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; max-width: 34em; }
.quote cite { display: block; font-style: normal; font-family: var(--ui); font-size: 0.85rem; margin-top: 1em; color: var(--faint); }

/* ── Comparison table ───────────────────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--ui); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.compare th:nth-child(3), .compare td:nth-child(3) { color: var(--navy); font-weight: 600; }
.compare td:first-child { color: var(--faint); font-family: var(--ui); font-size: 0.85rem; font-weight: 600; width: 18%; }
.compare td:nth-child(2) { color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 600px) { .compare { min-width: 560px; } }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 2em; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step .n { font-family: var(--sans); font-weight: 800; font-size: 2.4rem; color: var(--magenta); line-height: 1; }
.step h3 { color: var(--white); margin: 8px 0 6px; }
.step p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 1.5em; }
.tab { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; padding: 10px 16px; border: 2px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.panel[hidden] { display: none; }
form { display: grid; gap: 18px; max-width: 680px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--ui); font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); width: 100%;
}
.field input:not([type=checkbox]):focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.checks { display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 5px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--blue); }
.consent { font-size: 0.85rem; color: var(--muted); display: block; position: relative; padding-left: 28px; }
.consent input { position: absolute; left: 0; top: 4px; margin: 0; }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 0.95rem; padding: 12px 14px; border-radius: var(--radius); }
.status.ok { background: #e6f4ea; color: #1e5e32; }
.status.err { background: #fdecef; color: #8a1a44; }
.success { background: var(--navy); color: var(--white); padding: 32px; border-radius: var(--radius); }
.success h3 { color: var(--white); }
.success p { color: rgba(255,255,255,0.85); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { font-size: 0.97rem; color: var(--muted); }
.placeholder { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 3px; }

@media print {
  .site-header, .site-footer .links, .btn-row { display: none !important; }
  body { background: #fff; }
  .hero, .band, .callout, .card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Chat demo ──────────────────────────────────────────────────── */
.chat { background: var(--navy); color: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto auto; max-width: 820px; margin: 2.5em auto 0; box-shadow: 0 30px 80px rgba(5,5,31,0.25); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.chat-head .tag { font-family: var(--ui); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(242,183,61,0.5); padding: 3px 8px; border-radius: 999px; }
.chat-log { padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 14px; min-height: 380px; max-height: 620px; overflow-y: auto; }
.msg { max-width: 88%; font-size: 0.97rem; line-height: 1.5; }
.msg p { margin: 0 0 10px; }
.msg p:last-child { margin-bottom: 0; }
.msg.user { align-self: flex-end; background: var(--magenta); color: var(--white); padding: 12px 16px; border-radius: 14px 14px 2px 14px; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 14px 16px; border-radius: 14px 14px 14px 2px; color: rgba(255,255,255,0.92); }
.msg.bot strong { color: var(--white); }
.msg.bot ul { margin: 4px 0 10px; padding-left: 18px; }
.msg.bot li { margin: 3px 0; }
.msg.bot .links a { font-size: 0.82rem; color: var(--gold); margin-right: 14px; text-decoration: underline; text-underline-offset: 3px; }
.scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
@media (max-width: 640px) { .scenarios { grid-template-columns: 1fr; } .msg { max-width: 96%; } }
.scenario { background: rgba(255,255,255,0.06); border-left: 3px solid var(--gold); padding: 10px 12px; font-size: 0.86rem; display: grid; gap: 4px; }
.scenario strong { font-family: var(--sans); font-size: 0.95rem; letter-spacing: -0.01em; }
.scenario span { color: rgba(255,255,255,0.75); }
.typing { display: flex; gap: 5px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 12px; min-height: 30px; }
.chip { font: inherit; font-size: 0.86rem; font-weight: 500; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 8px 14px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chat-input { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.chat-input input { flex: 1; font: inherit; font-size: 0.95rem; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); color: var(--white); }
.chat-input input::placeholder { color: rgba(255,255,255,0.45); }
.chat-input input:focus { outline: 2px solid var(--magenta); outline-offset: 1px; }
.chat-input button { font: inherit; font-family: var(--sans); font-weight: 700; background: var(--magenta); color: var(--white); border: 0; border-radius: 999px; padding: 0 18px; cursor: pointer; }
.demo-note { font-size: 0.82rem; color: var(--faint); max-width: 820px; margin: 14px auto 0; }

/* ── Master plan page ───────────────────────────────────────────── */
.plan { max-width: 720px; }
.plan .lead { max-width: none; }
.plan p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; }
.plan-step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; margin: 2.8em 0; }
.plan-step .n { font-family: var(--sans); font-weight: 800; font-size: 3.4rem; line-height: 0.9; color: var(--magenta); letter-spacing: -0.04em; }
.plan-step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 0.5em; }
.plan-step p.meta { font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.8em; }
@media (max-width: 520px) { .plan-step { grid-template-columns: 1fr; gap: 6px; } }
.plan .sign { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 3em; }

/* ── Tech details & effects ─────────────────────────────────────── */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78em; letter-spacing: 0; text-transform: none; }
.tag-mono { margin-left: 12px; color: var(--faint); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.cursor { display: inline-block; width: 0.08em; height: 0.85em; background: var(--magenta); margin-left: 0.08em; vertical-align: -0.05em; animation: cursor 1.1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.hero .term { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 2.2em 0 0; min-height: 1.4em; }
.hero .term .prompt { color: var(--gold); }
.hero .term span[data-type-line]::after { content: "▍"; color: var(--magenta); animation: cursor 1s steps(1) infinite; }
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent); animation: scan 9s linear infinite; pointer-events: none; }
@keyframes scan { to { top: 110%; } }
.item .big { font-family: var(--sans); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--navy); margin: 12px 0 6px; font-variant-numeric: tabular-nums; }
.item .big .arrow { color: var(--magenta); font-weight: 500; margin: 0 4px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(5,5,31,0.25); }
.card .bar { transition: width .3s ease; }
.card:hover .bar { width: 100%; }
.compare tbody tr { transition: background .15s; }
.compare tbody tr:hover { background: rgba(0,40,210,0.05); }
.reveal { transform: translateY(10px); transition: transform .6s ease; }
.reveal.in { transform: none; }
.chip, .btn { transition: transform .12s ease, background .15s, border-color .15s; }
.chip:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .cursor, .hero::after, .hero .term span[data-type-line]::after { animation: none; }
  .reveal { transform: none; transition: none; }
  .card, .chip, .btn { transition: none; }
}

/* ── Marquee bands ──────────────────────────────────────────────── */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); }
.marquee.dark { background: var(--navy); border-color: rgba(255,255,255,0.12); }
.marquee.blue { background: var(--blue); border-color: rgba(255,255,255,0.2); }
.marquee .track { display: inline-flex; gap: 0; animation: marquee 22s linear infinite; will-change: transform; }
.marquee.rev .track { animation-direction: reverse; }
.marquee span { font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; padding-right: 0.45em; color: var(--navy); }
.marquee.dark span, .marquee.blue span { color: var(--white); }
.marquee span.dot { color: var(--magenta); }
.marquee.blue span.dot { color: var(--gold); }
.marquee span.ghost { color: transparent; -webkit-text-stroke: 2px var(--navy); }
.marquee.dark span.ghost, .marquee.blue span.ghost { -webkit-text-stroke: 2px rgba(255,255,255,0.7); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ── Stat items: number first, big ─────────────────────────────── */
.item.stat .big { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin: 0 0 10px; line-height: 1; }
.item.stat h3 { display: block; font-size: 1.15rem; margin: 0 0 8px; }
.item.stat > p:not(.big):not(.src) { margin-top: 0; }
