/* ==========================================================================
   Analitica.AI – static site styles
   Design source: Figma "analitica.ai" (frame analitica_v2_260909, 1440 px)
   ========================================================================== */

/* ---------- Design tokens (from Figma styles) ---------- */
:root {
  --primary:   #FFBD01;   /* yellow  */
  --secondary: #303C8F;   /* blue    */
  --tertiary:  #2A336F;   /* dark blue */
  --gray:      #F5F5F5;
  --white:     #FFFFFF;
  --black:     #000000;
  --purple:    #563AD3;   /* examples band */

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Type scale (desktop values from the design, fluid below 1440) */
  --fs-hero-a: clamp(56px, 6.9vw, 100px);
  --fs-hero-b: clamp(44px, 5.55vw, 80px);
  --fs-num:    clamp(56px, 5.55vw, 80px);
  --fs-h2:     clamp(36px, 4.45vw, 64px);
  --fs-h3:     clamp(30px, 3.35vw, 48px);
  --fs-h4:     clamp(26px, 2.8vw, 40px);
  --fs-h5:     clamp(24px, 2.25vw, 32px);
  --fs-lead:   clamp(20px, 1.67vw, 24px);
  --fs-body:   18px;
  --fs-small:  16px;
  --fs-xs:     14px;

  /* Layout – content width and alignment follow analitica-labs.com
     (Bootstrap container: 1210 px content ≥1270, 940 px ≥992, 720 px ≥768, fluid below) */
  --content-max: 1210px;
  --gutter: max(20px, calc((100vw - var(--content-max)) / 2));
  --nav-h: 80px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 10px rgba(0, 0, 0, .25);
  --shadow-soft: 0 4px 5px rgba(0, 0, 0, .25);
  --shadow-nav: 0 6px 20px rgba(0, 0, 0, .10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 700; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Helpers ---------- */
.container { width: 100%; padding-inline: var(--gutter); }
/* grid/flex children must be allowed to shrink below their content (carousels) */
.hero > *, .hero__bottom > *, .pillars > *, .product__grid > *, .expertise__grid > *, .site-footer__grid > * { min-width: 0; }
.bg-gray { background: var(--gray); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1; }
.h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.17; }
.h3--bold { font-weight: 700; }
.h4 { font-size: var(--fs-h4); font-weight: 400; line-height: 1; }
.h5 { font-size: var(--fs-h5); font-weight: 400; line-height: 1; }
.lead { font-size: var(--fs-lead); line-height: 1.4; }

/* Icons (assets/icons/*.svg, cut from the Figma export; colours are baked into each SVG) */
.icon { display: block; flex: none; width: 64px; height: 64px; max-width: none; }
.icon--lg { width: 80px; height: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 700; line-height: 1.5;
  text-align: center; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.btn:active { transform: none; box-shadow: none; }
.btn--primary   { background: var(--primary);   color: var(--white); }
.btn--secondary { background: var(--secondary); color: var(--white); }
.btn--outline   { background: transparent; color: var(--secondary); border-color: var(--secondary); font-weight: 400; }
.btn--sm { font-size: 14.4px; padding: 9.6px 12.8px; }
.btn--sm.btn--outline { font-weight: 700; }
.btn--nav { font-size: 16.2px; padding: 10.8px 14.4px; height: 46px; }
/* transparent header button, like "Analitica" on analitica-labs.com:
   on hover a solid fill sweeps in from the left (and retreats to the right on leave), text turns white */
.btn--ghost {
  position: relative; z-index: 0; overflow: hidden;
  background: transparent; color: var(--secondary); border-color: var(--secondary); font-weight: 400;
  transition: color .25s cubic-bezier(.38, .32, .36, .98);
}
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--secondary);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .25s cubic-bezier(.38, .32, .36, .98);
}
.btn--ghost:hover { background: transparent; color: var(--white); border-color: var(--secondary); transform: none; box-shadow: none; }
.btn--ghost:hover::before { transform: scaleX(1); transform-origin: left center; }

/* Round carousel buttons */
.cbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2.4px solid var(--primary); color: var(--primary);
  transition: opacity .15s ease, transform .15s ease;
}
.cbtn svg { width: 22px; height: 23px; }
.cbtn--outline { background: transparent; }
.cbtn--solid { background: var(--primary); color: var(--white); }
.cbtn--outline-secondary { border-color: var(--secondary); color: var(--secondary); }
.cbtn--solid-secondary { border-color: var(--secondary); background: var(--secondary); color: var(--white); }
.cbtn--sm { width: 34px; height: 34px; border-width: 1.7px; }
.cbtn--sm svg { width: 15px; height: 16px; }
.cbtn:hover:not(:disabled) { transform: scale(1.06); }
.cbtn:disabled { opacity: .45; cursor: default; }
/* arrow icon points up by default: rotate for prev/next */
[data-prev] svg { transform: rotate(-90deg); }
[data-next] svg { transform: rotate(90deg); }
[data-vdown] svg { transform: rotate(180deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: var(--shadow-nav);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.site-nav a.site-nav__cta { display: none; }
.brand { display: inline-flex; align-items: flex-start; }
.brand img { width: 181px; height: 32px; }
.brand__ai { color: var(--primary); font-weight: 700; font-size: 23.1px; line-height: 1; margin-left: 1px; margin-top: 3px; }
.brand--footer img { width: 258px; height: 46px; }
.brand--footer .brand__ai { font-size: 33px; margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  position: relative; display: inline-block;
  font-size: 18px; line-height: 1.5; color: var(--tertiary);
  text-align: center;
}
/* reserve bold width so links don't jump when they become active */
.site-nav a::before { content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: var(--primary); opacity: 0; transition: opacity .15s ease;
}
.site-nav a:hover { color: var(--secondary); }
.site-nav a.is-active { color: var(--secondary); font-weight: 700; }
.site-nav a.is-active::after { opacity: 1; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--secondary); transition: transform .2s ease, opacity .2s ease; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* The left half (title, buttons) sits in the content container like every other section;
   the coloured right half runs to the right screen edge (designer, 2026-10-08).
   100% - gutter = content width, so the left column is exactly half of it. */
.hero {
  display: grid; grid-template-columns: calc((100% - var(--gutter)) / 2) 1fr;
  min-height: 650px; padding-left: var(--gutter);
}
.hero__left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 94px 40px 93px 0;
}
.hero__title { display: flex; flex-direction: column; color: var(--secondary); font-weight: 400; }
.hero__title-a { font-size: var(--fs-hero-a); line-height: .82; margin-bottom: 24px; }
.hero__title-b { font-size: var(--fs-hero-b); line-height: 1; font-weight: 700; color: var(--primary); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 66px; }

.hero__right { display: grid; grid-template-rows: auto 1fr; }
/* the extra gutter on the right keeps the text inside the content container */
.hero__intro {
  background: var(--secondary); color: var(--white);
  padding: 98px calc(72px + var(--gutter)) 98px 72px; min-height: 358px;
}
/* claims keep 2/3 of the container half; the yellow block takes the rest up to the screen edge */
.hero__bottom { display: grid; grid-template-columns: calc((100% - var(--gutter)) * 2 / 3) 1fr; min-height: 292px; }
.hero__claims {
  position: relative; background: var(--tertiary); color: var(--white);
  display: flex; align-items: center; padding: 40px 56px 40px 48px;
}
.hero__claim { display: none; }
.hero__claim.is-active { display: block; }
.hero__claim strong { display: block; font-size: 26px; line-height: 1.4; }
.hero__claim span { display: block; font-size: 18px; line-height: 1.5; }
.hero__rot {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 24px; z-index: 2;
}
.hero__rot-btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--white); color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.hero__rot-btn:hover { transform: scale(1.06); }
.hero__rot-btn--down svg { transform: rotate(180deg); }
.hero__accent { position: relative; background: var(--primary); overflow: visible; }
/* logo mark in the middle of the yellow block */
.hero__accent img {
  position: absolute; left: 50%; top: 50%; width: 142px; height: 152px;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

/* ---------- Pillars (Enterprise AI built around your data) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); padding-inline: var(--gutter); }
.pillars__text { padding: 80px 80px 80px 0; }
.pillars__text .h3 { color: var(--secondary); margin-bottom: 24px; }
.pillars__text p + p { margin-top: 27px; }
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr; }
.tile { padding: 54px 40px 40px; min-height: 360px; }
.tile--white { background: var(--white); }
.tile .h4 { color: var(--secondary); margin-top: 24px; }
.tile p { margin-top: 24px; max-width: 280px; }

/* ---------- Solutions heading ---------- */
.solutions-heading { padding: 100px var(--gutter) 0; text-align: center; scroll-margin-top: var(--nav-h); }

/* ---------- Product sections ---------- */
.product { padding-block: 80px; }
.product__grid { display: grid; grid-template-columns: minmax(0, 500fr) minmax(0, 702fr); column-gap: 78px; align-items: start; }
.product--mirror .product__grid { grid-template-columns: minmax(0, 702fr) minmax(0, 500fr); }
.product--mirror .product__text { order: 2; }
.product--mirror .product__cards { order: 1; }

.product__num { font-size: var(--fs-num); line-height: .7; color: var(--primary); }
.product__title { font-size: var(--fs-h3); line-height: 1.17; font-weight: 400; color: var(--secondary); margin-top: 16px; }
.product__text .lead { margin-top: 16px; }
.product__text .lead + p { margin-top: 33px; }
.product__text p + p { margin-top: 27px; }
/* "Brochure" dropdown (EN / SL PDF) next to "Show example" */
.product__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 48px; }

/* Dropdown with download links: native <details>, js/main.js closes it on outside click / Esc */
.dl-menu { position: relative; }
.dl-menu__toggle { gap: 8px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.dl-menu__toggle::-webkit-details-marker { display: none; }
.dl-menu__toggle svg { width: 18px; height: 18px; flex: none; }
.dl-menu__chevron { margin-left: 2px; transition: transform .2s ease; }
.dl-menu[open] .dl-menu__toggle { background: var(--secondary); color: var(--white); }
.dl-menu[open] .dl-menu__chevron { transform: rotate(180deg); }
.dl-menu__list {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  min-width: 100%; width: max-content; padding: 6px;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
}
.dl-menu__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 10px 12px; border-radius: 4px;
  color: var(--secondary); font-size: 16px; font-weight: 700; white-space: nowrap;
}
.dl-menu__list a span { font-size: 13px; font-weight: 400; color: var(--tertiary); }
.dl-menu__list a:hover, .dl-menu__list a:focus-visible { background: var(--gray); }

.product__cards { margin-top: 72px; }

/* Carousel (generic) */
.carousel { position: relative; }
.carousel__track {
  position: relative;
  display: flex; gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  /* room for the card shadows: the scroll box would otherwise clip them on all sides */
  padding: 12px 16px;
  margin-inline: -16px;
  scroll-padding-inline: 16px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: none; }
.carousel__nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.product--mirror .carousel__nav { justify-content: flex-start; }

/* Feature card – two cards fill the column on desktop, the third scrolls in */
.fcard {
  flex: 0 0 calc((100% - 24px) / 2); min-height: 520px;
  min-width: 0; /* never grow past the basis because of a long word */
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 32px 32px 32px;
}
/* h5 size so the longest words ("understanding", "authentication") fit the card at every width */
.fcard__title { font-size: var(--fs-h5); line-height: 1; font-weight: 400; color: var(--primary); margin-top: 26px;
  overflow-wrap: break-word; }
.product--mirror .fcard__title { color: var(--secondary); }
.fcard p { color: var(--tertiary); margin-top: 16px; }

/* Callout */
.callout {
  margin-top: 64px;
  border: 2px solid var(--secondary); border-radius: var(--radius);
  padding: 20px 40px;
  font-size: 20px; line-height: 1.5; color: var(--secondary);
}
.product--mirror .callout { border-color: var(--primary); color: var(--primary); }

/* ---------- Examples band ---------- */
.examples { background: var(--purple); padding-block: 80px 60px; }
.examples .carousel__track { padding-block: 0; }
.shot { width: 100%; color: var(--white); }
.shot img { width: 100%; height: auto; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { font-size: var(--fs-small); margin-top: 16px; }
.examples .carousel__nav { margin-top: 24px; }

/* ---------- Deployment ---------- */
.deploy__top { background: var(--secondary); padding-top: 80px; }
.deploy__lead { max-width: 1072px; margin: 16px auto 0; line-height: 1.33; }
.deploy__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  max-width: 1178px; margin: 64px auto 0;
  position: relative; z-index: 1;
  margin-bottom: -189px; /* cards straddle the two backgrounds */
}
.dcard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; min-height: 458px; }
.dcard__head { background: var(--primary); color: var(--white); text-align: center; padding: 32px 24px 28px; min-height: 128px; }
.dcard__head h3 { font-size: var(--fs-h4); font-weight: 700; line-height: 1; }
.dcard__head p { font-size: var(--fs-lead); line-height: 1; margin-top: 4px; }
.dcard__body { padding: 28px 32px 32px; color: var(--tertiary); flex: 1; display: flex; flex-direction: column; }
.dcard__body ul { list-style: disc; padding-left: 27px; margin-top: 27px; }

.deploy__bottom { background: var(--tertiary); padding: calc(189px + 100px) 0 80px; }
.flow {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  margin-top: 44px; flex-wrap: wrap;
}
.flow__box {
  width: 250px; height: 250px; border-radius: var(--radius);
  background: var(--secondary); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
}
.flow__box--accent { background: var(--primary); }
.flow__box .icon { margin-bottom: 16px; }
.flow__box strong { font-size: 24px; line-height: 1.33; }
.flow__box span { font-size: 16px; line-height: 1.15; margin-top: 4px; }
.flow__arrow { width: 29px; height: 36px; transform: rotate(90deg); flex: none; }

/* ---------- Expertise ---------- */
.expertise { padding-block: 80px; }
.expertise .h2 { margin-top: 24px; }
.expertise__lead { max-width: 1072px; margin: 32px auto 0; line-height: 1.33; }
.expertise__grid { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 560fr); gap: 86px; margin-top: 64px; align-items: start; }
.expertise__text .h3 { color: var(--secondary); }
.expertise__text .lead { margin-top: 16px; }
.expertise__text .btn { margin-top: 40px; }

.expertise__list-wrap { position: relative; padding-right: 78px; }
.expertise__list {
  display: flex; flex-direction: column; gap: 16px;
  max-height: 302px; overflow: hidden;
  padding: 0 6px 12px; margin: 0 -6px;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  scroll-behavior: smooth;
}
.pill {
  display: flex; align-items: center; gap: 32px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  min-height: 96px; padding: 16px 32px; flex: none;
}
.pill__text { font-size: 18px; line-height: 20px; }
.pill__text strong { display: block; }
.vnav { position: absolute; right: 0; top: 244px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Applications ---------- */
.apps { padding-block: 64px 80px; }
.apps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 40px; }
.acard {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 24px; min-height: 260px;
}
.acard > div { flex: 1; min-width: 0; }
.acard__label { color: var(--primary); font-size: 16px; line-height: 1.5; }
.acard__title { font-size: 18px; font-weight: 700; line-height: 1.33; margin-top: 8px; }
.acard ul { list-style: disc; padding-left: 27px; line-height: 1.33; }
.acard .btn { margin-top: 16px; }
.acard--case { grid-column: 1 / -1; }
.acard .acard--case__text { flex: 1 1 320px; max-width: 570px; }
.acard--case__text .acard__title + p { margin-top: 24px; line-height: 1.33; }
.acard .acard--case__media { flex: 1 1 260px; min-width: 200px; margin: 0; align-self: center; }
/* animated GIF (495×259, own light-grey background) */
.acard--case__media img { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; border-radius: var(--radius); }

/* ---------- CTA ---------- */
.cta { background: var(--tertiary); padding-block: 80px; }
.cta .h2 { margin-top: 24px; }
.cta__lead { max-width: 964px; margin: 32px auto 0; color: var(--gray); line-height: 1.33; }
.cta .btn { margin-top: 48px; }

/* Contact form: white card, same pattern as analitica.si/contact */
.cform {
  max-width: 640px; margin: 48px auto 0;
  background: var(--white); color: var(--black); text-align: left;
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 40px 48px 44px;
}
.cform__field + .cform__field { margin-top: 20px; }
.cform label { display: block; font-size: 16px; line-height: 1.5; color: var(--tertiary); margin-bottom: 6px; }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  display: block; width: 100%;
  font: inherit; font-size: 18px; line-height: 1.5; color: var(--black);
  background: var(--gray); border: 1px solid #E2E2E2; border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cform textarea { min-height: 150px; resize: vertical; }
.cform input:focus, .cform textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(48, 60, 143, .2);
}
.cform .is-invalid { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.cform__actions { margin-top: 28px; text-align: center; }
.cform .btn { margin-top: 0; min-width: 165px; cursor: pointer; }
.cform .btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.cform__status { margin-top: 16px; text-align: center; font-size: 16px; line-height: 1.5; }
.cform__status:empty { display: none; }
.cform__status.is-success { color: #1B6E36; }
.cform__status.is-error { color: #B3261E; }
.cform__status a { text-decoration: underline; }
/* spam trap, kept out of sight and out of the tab order */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: 80px 44px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand p { font-size: 16px; max-width: 351px; margin-top: 22px; }
.site-footer__col h3 { color: var(--primary); font-size: 16px; font-weight: 700; line-height: 2; text-transform: uppercase; }
.site-footer__col li, .site-footer__col address { font-size: 16px; line-height: 2; }
.site-footer__addr { line-height: 1.5; display: inline-block; }
.site-footer a:hover { color: var(--primary); }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--white); margin-top: 60px; padding-top: 16px;
  font-size: var(--fs-xs);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* 992–1269 px: 940 px content (Bootstrap "md" container of the reference site) */
@media (max-width: 1269px) {
  :root { --content-max: 940px; }
  .site-header__inner { gap: 16px; }
  .brand img { width: 150px; height: auto; }
  .brand__ai { font-size: 19px; margin-top: 2px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 14px; }
  .site-header__actions { gap: 8px; }
  .btn--nav { font-size: 14px; padding-inline: 12px; height: 42px; }
  .hero__intro { padding: 56px calc(40px + var(--gutter)) 56px 40px; }
  .hero__claims { padding-left: 40px; }
  .hero__claim strong { font-size: 24px; }
  .pillars__text { padding-right: 40px; }
  .fcard { flex-basis: 300px; }
  .product__grid { column-gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .product--mirror .product__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .expertise__grid { gap: 48px; }
}

/* ≤ 991 px: 720 px content, stacked layouts, hamburger menu */
@media (max-width: 991px) {
  :root { --content-max: 720px; }
  /* header */
  .site-header__inner { gap: 16px; }
  .site-header__actions { display: none; }
  .site-nav a.site-nav__cta { display: block; font-weight: 700; color: var(--secondary); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); box-shadow: var(--shadow-nav);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .site-nav a { font-size: 18px; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--gray); }
  .site-nav a::after { display: none; }
  .is-open .site-nav { display: flex; }

  /* hero – still two columns, tighter */
  .hero { min-height: 0; }
  .hero__left { padding: 64px 32px 56px 0; }
  .hero__intro { padding: 48px calc(32px + var(--gutter)) 48px 32px; min-height: 0; }
  .hero__claims { padding: 32px 48px 32px 32px; min-height: 240px; }
  .hero__claim strong { font-size: 24px; line-height: 1.3; }
  .hero__claim span { font-size: 16px; }
  .hero__rot { right: -24px; gap: 16px; }
  .hero__rot-btn { width: 48px; height: 48px; }
  .hero__rot-btn svg { width: 18px; height: 19px; }

  /* pillars */
  .pillars { grid-template-columns: 1fr; }
  .pillars__text { padding: 64px 0 48px; }

  /* products – keep the alternating two-column layout (1 right, 2 left, …) */
  .product { padding-block: 64px; }
  .product__grid { column-gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .product--mirror .product__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .product__cards { margin-top: 64px; }
  .fcard { flex-basis: 300px; min-height: 0; padding: 24px; }
  .callout { padding: 16px 20px; font-size: 18px; margin-top: 40px; }

  /* deployment */
  .deploy__cards { grid-template-columns: 1fr; max-width: 520px; transform: none; margin-bottom: 0; padding-bottom: 64px; }
  .deploy__bottom { padding-top: 80px; }

  /* expertise */
  .expertise__grid { grid-template-columns: 1fr; gap: 48px; }

  /* apps */
  .apps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acard--case { flex-wrap: wrap; }
  .acard .acard--case__text { max-width: none; }
  .acard .acard--case__media { flex-basis: 100%; }

  /* footer */
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ≤ 767 px: fluid width with a fixed 20 px gutter */
@media (max-width: 767px) {
  :root { --fs-body: 16px; --gutter: 20px; }
  .btn { font-size: 16px; }
  .brand img { width: 150px; height: auto; }
  .brand__ai { font-size: 19px; margin-top: 2px; }

  /* hero stacks on phones */
  .hero { grid-template-columns: 1fr; padding-inline: 0; }
  .hero__left { padding: 64px var(--gutter) 56px; }
  .hero__intro { padding: 48px var(--gutter); }
  .hero__intro p { max-width: none; }
  .hero__title-b { max-width: none; }
  .hero__actions { margin-top: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__claims { padding: 48px 96px 48px var(--gutter); }
  .hero__rot { right: 20px; }
  .hero__accent { min-height: 120px; }
  .hero__accent img { top: auto; bottom: -10px; left: auto; right: 24px; transform: none; }

  /* products stack on phones: text first, then the cards */
  .product__grid, .product--mirror .product__grid { grid-template-columns: 1fr; row-gap: 40px; column-gap: 0; }
  .product--mirror .product__text { order: 1; }
  .product--mirror .product__cards { order: 2; }
  .product__cards { margin-top: 0; }
  /* on phones the card track may run to the screen edge */
  .product .carousel__track { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .product--mirror .carousel__nav { justify-content: flex-end; }

  .pillars { padding-inline: 0; }
  .pillars__text { padding: 64px var(--gutter) 48px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 40px var(--gutter); }
  .tile p { max-width: none; }

  .solutions-heading { padding-top: 64px; }
  .fcard { flex-basis: 300px; min-height: 0; }
  .callout { padding: 16px 20px; font-size: 18px; margin-top: 40px; }

  .shot figcaption { font-size: 14px; }

  .flow { gap: 16px; }
  .flow__box { width: 100%; max-width: 320px; height: auto; padding: 32px 24px; }
  .flow__arrow { transform: rotate(180deg); }

  .expertise__list-wrap { padding-right: 56px; }
  .pill { gap: 20px; padding: 16px 20px; }

  .apps__grid { grid-template-columns: 1fr; }
  .acard { min-height: 0; }
  .acard .acard--case__text { flex-basis: 0; }
  .acard .btn--sm { white-space: normal; text-align: left; }

  .cform { padding: 28px 20px 32px; margin-top: 36px; }
  .cform input[type="text"], .cform input[type="email"], .cform textarea { font-size: 16px; }
  .cform .btn { width: 100%; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
}
