/* AI Consultim — main stylesheet */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #0B1220;
  --ink-2: #121B2E;
  --ink-3: #070C17;
  --line-dark: #222E48;
  --line-dark-2: #2A3550;
  --line-dark-3: #3A4766;
  --text-on-dark: #C9D1E3;
  --muted-on-dark: #8C97B0;
  --white: #FFFFFF;
  --surface: #F3F5FA;
  --line: #E1E6F0;
  --line-2: #D5DCEA;
  --text-2: #4A5672;
  --text-3: #5A6580;
  --accent: #2F5BFF;
  --accent-soft: #E4EAFF;
  --lime: #C6F432;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 24px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s); z-index: 100; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; }
.section { padding: 104px 24px; }
.section--dark { background: var(--ink); color: var(--white); }
.section--muted { background: var(--surface); }
.section--tight-top { padding-top: 0; }
.stack { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-48 { gap: 48px; } .gap-56 { gap: 56px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section--dark .eyebrow, .eyebrow--lime { color: var(--lime); }
.h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }
.h2--s { font-size: clamp(28px, 3.4vw, 40px); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 440px; }
.section--dark .lead { color: var(--text-on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__title { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
.grid--260 { --min: 260px; } .grid--270 { --min: 270px; } .grid--180 { --min: 180px; }
.lead--wide { max-width: 560px; }
.split { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #1F47E6; color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #E8ECF5; color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #B4E21F; color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #1B2640; color: var(--white); }
.btn--ghost-dark { border-color: var(--line-dark-3); color: var(--white); font-weight: 500; }
.btn--ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn--outline { border-color: #C3CBDB; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--s { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: var(--radius-s); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: none; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--ink); color: var(--white); padding: 0 24px; position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.nav__logo img { height: 48px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__menu a { color: var(--text-on-dark); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--white); }
.nav__menu a[aria-current="page"] { font-weight: 600; }
.nav__menu .btn--light { color: var(--ink); padding: 10px 18px; min-height: 44px; font-size: 15px; border-radius: var(--radius-s); }
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-dark-2); border-radius: 999px; padding: 4px; }
.lang a { padding: 6px 10px; border-radius: 999px; color: var(--text-on-dark); }
.lang a[aria-current="true"] { background: var(--white); color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--radius-s); border: 1px solid var(--line-dark-2); background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 96px; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line-dark); }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__menu .lang { align-self: flex-start; margin: 16px 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 56px 24px 88px; }
.hero__grid { display: grid; gap: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__text--narrow { padding-top: 48px; }
.hero__text--narrow > * { max-width: 900px; }
.badge-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.badge-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -0.035em; }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--text-on-dark); max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 14px; font-weight: 500; color: #E4E9F5; border: 1px solid var(--line-dark-2); background: var(--ink-2); border-radius: 999px; padding: 8px 14px; }

/* ---------- Video (click-to-load) ---------- */
.video { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.video__frame { position: relative; aspect-ratio: 1636 / 886; border-radius: var(--radius-xl); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; }
.video__frame img.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: relative; width: 88px; height: 88px; border-radius: 50%; border: none; background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .15s; }
.video__play:hover { transform: scale(1.06); }
.video__label { position: absolute; left: 20px; bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: var(--ink); border-radius: 999px; padding: 6px 12px; }
.video__consent { position: relative; max-width: 420px; margin: 24px; background: var(--white); color: var(--ink); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.video__consent strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.video__consent p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.video figcaption { font-size: 14px; color: var(--muted-on-dark); }

/* ---------- Key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line-dark); }
.figure { padding: 36px 32px 0 0; display: flex; flex-direction: column; gap: 8px; }
.figure__value { font-family: var(--font-display); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--lime); }
.figure__value--s { font-size: 40px; line-height: 1.15; }
.figure__label { font-size: 16px; line-height: 1.5; color: var(--text-on-dark); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile--s { width: 44px; height: 44px; }

.mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.mosaic .card { border: none; border-radius: 0; gap: 14px; }
.mosaic .card h3 { font-size: 21px; }

.checklist { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #EEF1F6; font-size: 15px; font-weight: 500; }
.checklist svg { color: var(--accent); flex: none; }
.segment p { font-size: 15px; }

.pillar__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pillar__num { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--muted-on-dark); }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.pillar h3 { font-size: 24px; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--white); border-radius: var(--radius-xl); padding: 40px 48px; }
.cta-band h3 { font-size: 28px; letter-spacing: -0.02em; }
.cta-band p { font-size: 16px; line-height: 1.6; color: var(--text-on-dark); max-width: 640px; margin-top: 8px; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.founder--top { align-items: start; }
.founder__photo { margin: 0; position: relative; max-width: 440px; }
.founder__photo img { width: 100%; aspect-ratio: 374 / 562; object-fit: cover; border-radius: var(--radius-xl); }
.founder__badge { position: absolute; left: 20px; bottom: 20px; background: var(--white); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.founder__badge strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.founder__badge span { font-size: 13px; color: var(--text-2); }
.founder__quote { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.15; }
.founder__text { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.founder__text--s { font-size: 16px; }
.values-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.values-tiles div { border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }

/* ---------- Value list ---------- */
.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.value-list li { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-2); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.value-list .icon-tile { width: 36px; height: 36px; border-radius: var(--radius-s); }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.trust-grid div { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.trust-grid strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.trust-grid span { font-size: 15px; line-height: 1.55; color: var(--text-2); }

.partners { border-top: 1px solid var(--line); padding-top: 64px; }

.numbered { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.numbered li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.numbered span { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent); }

/* ---------- Contact ---------- */
.contact__info { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; font-size: 16px; }
.contact__info a { display: flex; align-items: center; gap: 12px; color: var(--white); }
.contact__info a:hover { color: var(--lime); }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius-xl); padding: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 12px 14px; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); }
.form input { height: 48px; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form small { font-size: 13px; color: var(--text-3); font-weight: 400; }
.form__status { font-size: 15px; font-weight: 500; border-radius: var(--radius-s); padding: 12px 14px; }
.form__status--ok { background: #E7F7EC; color: #11622F; }
.form__status--err { background: #FDECEC; color: #9B1C1C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: var(--muted-on-dark); padding: 32px 24px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { height: 32px; width: auto; opacity: .8; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__links a, .site-footer__links button { color: var(--text-on-dark); font-size: 14px; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -0.03em; margin-bottom: 32px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose .todo { background: #FFF6D6; color: #6B4E00; border-radius: 6px; padding: 1px 6px; font-weight: 500; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; }
.cookie__box { width: 100%; max-width: 1040px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: 0 12px 40px rgba(11,18,32,.18); padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.cookie__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cookie__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 460px; min-width: 0; }
.cookie__text strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.cookie__text p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.cookie__text a { color: var(--accent); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--radius-s); }
.cookie__actions .btn--outline { border-color: var(--ink); }
.cookie__customise { font-weight: 600; min-height: 46px; padding: 0 12px; }
.cookie__prefs { border-top: 1px solid var(--line); }
.cookie__cat { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie__cat strong { font-size: 15px; display: block; margin-bottom: 4px; }
.cookie__cat span { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie__always { flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; }
.switch { flex: none; width: 48px; height: 28px; border-radius: 999px; border: none; padding: 3px; display: flex; justify-content: flex-start; background: #8C97B0; cursor: pointer; transition: background-color .15s; }
.switch::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.cookie__save { display: flex; justify-content: flex-end; padding-top: 16px; }

@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .hero { padding: 32px 20px 64px; }
  .card, .form { padding: 24px; }
  .cta-band { padding: 28px 24px; }
  .figure__value { font-size: 44px; }
  .cookie__box { padding: 20px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
