/* ==========================================================================
   Amiro 2026 – component styles. Colours, fonts and spacing are in theme.json.
   ========================================================================== */

:root {
	--ai-primary: var(--wp--preset--color--primary, #0077BB);
	--ai-primary-dark: var(--wp--preset--color--primary-dark, #005A8E);
	--ai-soft: var(--wp--preset--color--primary-soft, #E8F3FA);
	--ai-ink: var(--wp--preset--color--ink, #0B2540);
	--ai-text: var(--wp--preset--color--text, #3A4A5C);
	--ai-muted: var(--wp--preset--color--muted, #5E6E80);
	--ai-surface: var(--wp--preset--color--surface, #F4F7FA);
	--ai-border: var(--wp--preset--color--border, #DDE5EE);
	--ai-on-dark: var(--wp--preset--color--on-dark, #C9D6E3);
	--ai-sky: var(--wp--preset--color--accent-on-dark, #7CC4EC);
	--ai-radius: 20px;
	--ai-section: clamp(4rem, 9vw, 6rem);
	--ai-display: var(--wp--preset--font-family--heading, Sora, system-ui, sans-serif);
	scroll-padding-top: 96px;
}

:where(.ai-main, .ai-footer, .ai-header) :where(*, *::before, *::after) { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ai-primary); outline-offset: 3px; }
.ai-main :where(p, li) { text-wrap: pretty; }
.ai-main :where(h1, h2, h3) { text-wrap: balance; }

/* Utilities ----------------------------------------------------------------- */
.ai-grid-bg { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 56px 56px; }
.ai-dots { background-image: radial-gradient(#C8D8E6 1.2px, transparent 1.2px); background-size: 22px 22px; }
.ai-surface { background-color: var(--ai-surface); }
.ai-dark { background-color: var(--ai-ink); color: var(--ai-on-dark); }
.ai-dark :where(h1, h2, h3, h4) { color: #fff; }
.ai-dark .ai-kicker { color: var(--ai-sky); }
.ai-lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ai-lift:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11, 37, 64, .12); border-color: #B9D4E8; }
.ai-kicker { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-primary); }
.ai-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.65; }
.ai-more { font-weight: 600; text-decoration: none; }
.ai-pill { align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ai-primary-dark); background: var(--ai-soft); padding: .375rem .625rem; border-radius: 999px; }
.ai-pill--dark { color: var(--ai-sky); background: rgba(124, 196, 236, .12); }
.ai-eyebrow { margin: 0; display: flex; align-items: center; gap: .625rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-sky); }
.ai-eyebrow span { width: 28px; height: 2px; background: var(--ai-sky); flex: none; }

/* Buttons ------------------------------------------------------------------- */
.ai-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.ai-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .875rem 1.5rem; border-radius: 12px; border: 1px solid transparent; background: var(--ai-primary); color: #fff !important; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ai-btn:hover { background: var(--ai-primary-dark); transform: translateY(-1px); }
.ai-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ai-btn--glow { box-shadow: 0 10px 24px rgba(0, 119, 187, .32); }
.ai-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.ai-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.ai-btn--outline { background: #fff; color: var(--ai-ink) !important; border-color: #C9D4E0; }
.ai-btn--outline:hover { background: #fff; border-color: var(--ai-primary); color: var(--ai-primary) !important; }
.ai-btn--sm { min-height: 44px; padding: .6875rem 1.25rem; border-radius: 10px; font-size: .9375rem; }

/* Header -------------------------------------------------------------------- */
.ai-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .ai-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ai-header { position: relative; isolation: isolate; border-bottom: 1px solid var(--ai-border); }
/* Blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside the header height. */
.ai-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.ai-header__inner { min-height: 76px; gap: 1.5rem; }
.ai-logo { display: block; line-height: 0; }
.ai-logo img { height: 46px; width: auto; }
.ai-header__nav { gap: 1.75rem; }
.ai-nav .wp-block-navigation-item__content { padding: .5rem 0; color: var(--ai-ink); text-decoration: none; }
.ai-nav .wp-block-navigation-item__content:hover { color: var(--ai-primary); }
.ai-nav .wp-block-navigation__submenu-container { border: 1px solid var(--ai-border) !important; border-radius: 14px; padding: .5rem !important; box-shadow: 0 18px 40px rgba(11, 37, 64, .12); min-width: 300px !important; }
.ai-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem .75rem; border-radius: 8px; }
.ai-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ai-soft); }
.ai-header__cta .wp-block-button__link { padding: .75rem 1.25rem; border-radius: 10px; }

/* Mobile menu */
.ai-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1rem 1.5rem 2.5rem; --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; }
.ai-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 3.25rem !important; }
.ai-nav .is-menu-open .wp-block-navigation__container { align-items: stretch !important; width: 100%; gap: 0 !important; }
.ai-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; align-items: flex-start !important; border-bottom: 1px solid var(--ai-border); }
.ai-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--ai-display); font-weight: 700; font-size: 1.1875rem; color: var(--ai-ink); padding: .875rem 0 !important; }
.ai-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; border: 0 !important; box-shadow: none !important; background: transparent !important; min-width: 0 !important; width: 100%; padding: 0 0 .75rem !important; gap: 0 !important; }
.ai-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
.ai-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 1rem; color: var(--ai-text); padding: .5rem 0 !important; }
.ai-nav .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
.ai-nav .wp-block-navigation__responsive-container-close { top: 1rem; right: 1.25rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ai-surface); }
.ai-nav .wp-block-navigation__responsive-container-open:not([hidden]) { width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ai-surface); }
html.has-modal-open .ai-mobile-bar { display: none; }
.ai-nav .wp-block-navigation-item__content { white-space: nowrap; }
/* Tablets: the full menu does not fit next to the logo, so the menu button is used up to 1023px. */
@media (min-width: 600px) and (max-width: 1023px) {
	.ai-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ai-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1100px) { .ai-header__nav { gap: 1rem; } }
@media (max-width: 1023px) { .ai-header .ai-header__cta { display: none !important; } }
@media (max-width: 781px) {
	.ai-header .ai-header__cta { display: none !important; }
	.ai-logo img { height: 40px; }
	.ai-header__inner { min-height: 64px; }
}

/* Sections ------------------------------------------------------------------ */
.ai-main { margin-top: 0; }
.ai-main > * { margin-block-start: 0; }
.ai-section { padding-top: var(--ai-section); padding-bottom: var(--ai-section); }
.ai-section--tight { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.ai-section > * + * { margin-top: 0; }
.ai-section > .ai-head { margin-bottom: clamp(2rem, 4vw, 2.5rem) !important; }
.ai-section > * + .ai-text, .ai-section > * + .ai-pdf-all { margin-top: clamp(1.75rem, 4vw, 2.5rem) !important; }
.ai-head { display: flex; flex-direction: column; gap: .75rem; max-width: 820px; }
.ai-head.alignwide { max-width: var(--wp--style--global--wide-size, 1240px); }
.ai-head > * { margin: 0; max-width: 820px; }
.ai-head h2 { font-size: var(--wp--preset--font-size--xx-large); }
.ai-head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem; }
.ai-head--row > div:first-child { display: flex; flex-direction: column; gap: .625rem; }
.ai-head__pre { margin: 0; color: var(--ai-ink); }
.ai-text { max-width: 860px; }
.ai-text.alignwide { max-width: var(--wp--style--global--wide-size, 1240px); }
.ai-text > * { margin: 0; max-width: 860px; }
.ai-text > * + * { margin-top: 1rem; }
.ai-text .ai-btns { margin-top: 1.5rem; }

/* Home: hero ---------------------------------------------------------------- */
.ai-hero { position: relative; overflow: hidden; background-color: var(--ai-ink); color: var(--ai-on-dark); padding-top: clamp(3.5rem, 8vw, 5.5rem); padding-bottom: clamp(4rem, 9vw, 6rem); }
.ai-glow { position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 119, 187, .55), rgba(0, 119, 187, 0) 70%); pointer-events: none; }
.ai-hero__cols { position: relative; display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.ai-hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ai-hero__text > * { margin: 0; }
.ai-hero__title { color: #fff; font-size: var(--wp--preset--font-size--huge); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; }
.ai-hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.65; max-width: 640px; }
.ai-hero__sub { color: #A9BBCD; max-width: 640px; }
.ai-hero__paths { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.ai-path { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.ai-path:hover { background: rgba(255, 255, 255, .1); border-color: rgba(124, 196, 236, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.ai-path__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--ai-primary); display: flex; align-items: center; justify-content: center; }
.ai-path__icon svg, .ai-card__icon svg, .ai-ico-go { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-ico-go { width: 20px; height: 20px; stroke: var(--ai-sky); flex: none; transition: transform .2s ease; }
.ai-path:hover .ai-ico-go { transform: translateX(3px); }
.ai-path__text { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.ai-path__text strong { font-family: var(--ai-display); font-size: 1.125rem; }
.ai-path__text span { font-size: .875rem; color: #A9BBCD; line-height: 1.45; }

/* Marquee */
.ai-marquee { background: var(--ai-primary); overflow: hidden; padding: .875rem 0; margin: 0 !important; }
.ai-marquee--dark { background: var(--ai-ink); }
.ai-marquee__track { display: flex; width: max-content; font-family: var(--ai-display); font-weight: 700; font-size: 1.0625rem; color: #fff; white-space: nowrap; }
.ai-marquee__track span { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.ai-marquee__track i { width: 8px; height: 8px; border-radius: 50%; background: var(--ai-sky); }
.ai-marquee--dark .ai-marquee__track i { background: var(--ai-primary); }

/* Home: split / tiles ------------------------------------------------------- */
.ai-split { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 3.5rem); }
.ai-split--center { align-items: center; }
.ai-split--rev { flex-direction: row-reverse; }
.ai-split__a { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.ai-split__b { flex: 1.3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.ai-split :where(.ai-split__a, .ai-split__b) > * { margin: 0; }
.ai-split h2 { font-size: var(--wp--preset--font-size--xx-large); }
.ai-split .ai-head { gap: .75rem; }
.ai-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .75rem; margin-top: .5rem !important; }
.ai-tile { padding: 1.125rem; border-radius: 14px; background: var(--ai-surface); display: flex; flex-direction: column; gap: .5rem; }
.ai-tile strong { font-size: .9375rem; color: var(--ai-ink); line-height: 1.35; }
.ai-tile span { font-size: .875rem; line-height: 1.5; }

/* Cards (ventures) ---------------------------------------------------------- */
.ai-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.ai-card { background: #fff; border-radius: 18px; padding: 1.75rem; text-decoration: none; color: var(--ai-text); display: flex; flex-direction: column; gap: .875rem; border: 1px solid var(--ai-border); }
.ai-card__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--ai-soft); display: flex; align-items: center; justify-content: center; }
.ai-card__icon svg { stroke: var(--ai-primary); }
.ai-card__title { font-family: var(--ai-display); font-size: 1.25rem; line-height: 1.3; color: var(--ai-ink); }
.ai-card__text { font-size: .9375rem; line-height: 1.55; }
.ai-card__go { margin-top: auto; font-weight: 600; color: var(--ai-primary); text-decoration: none; }

/* Home: products ------------------------------------------------------------ */
.ai-linklist { display: flex; flex-direction: column; margin-top: .5rem !important; border-top: 1px solid var(--ai-border); }
.ai-linklist a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--ai-border); text-decoration: none; color: var(--ai-ink); font-weight: 600; }
.ai-linklist a span { color: var(--ai-primary); transition: transform .2s ease; }
.ai-linklist a:hover { color: var(--ai-primary); }
.ai-linklist a:hover span { transform: translateX(4px); }
.ai-bento { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ai-bento a { border-radius: var(--ai-radius); text-decoration: none; display: flex; flex-direction: column; }
.ai-bento__cap { grid-row: span 2; background: #FFF6D6; align-items: center; justify-content: center; gap: .75rem; padding: 1.75rem; text-align: center; color: var(--ai-text); }
.ai-bento__cap img { width: 78%; filter: drop-shadow(0 18px 24px rgba(11, 37, 64, .2)); }
.ai-bento strong { font-family: var(--ai-display); color: var(--ai-ink); font-size: 1.0625rem; }
.ai-bento__cap span, .ai-bento__dark span { font-size: .875rem; line-height: 1.5; }
.ai-bento__img { overflow: hidden; background: var(--ai-surface); }
.ai-bento__img img { width: 100%; height: 170px; object-fit: cover; }
.ai-bento__img strong { padding: .875rem 1.125rem 1.125rem; }
.ai-bento__dark { background: var(--ai-ink); color: var(--ai-on-dark); padding: 1.5rem; gap: .625rem; justify-content: flex-end; transition: background-color .25s ease; }
.ai-bento__dark strong { color: #fff; }
.ai-bento__dark:hover { background: #12355A; }
@media (max-width: 520px) {
	.ai-bento { grid-template-columns: 1fr; }
	.ai-bento__cap { grid-row: auto; }
	.ai-bento__cap img { width: 52%; }
}

/* Home: news ---------------------------------------------------------------- */
.ai-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 1.25rem; align-items: start; }
.ai-news__card { background: #fff; border-radius: var(--ai-radius); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .875rem; border: 1px solid var(--ai-border); }
.ai-news__card > * { margin: 0; }
.ai-news__card h3 { font-size: 1.625rem; }
.ai-news__card--dark { background: var(--ai-ink); color: var(--ai-on-dark); border-color: var(--ai-ink); }
.ai-news__card--dark h3 { color: #fff; }
.ai-news__lead { font-size: 1.125rem; font-weight: 600; color: var(--ai-ink); }
.ai-news__visual { position: relative; height: 230px; border-radius: 14px; background: var(--ai-soft); padding: 22px 22px 0; overflow: hidden; margin-bottom: .375rem !important; }
.ai-shot { border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 -4px 30px rgba(11, 37, 64, .16); transition: transform .4s ease; max-width: 75%; }
.ai-news__card:hover .ai-shot { transform: translateY(-6px); }
.ai-shot__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--ai-border); }
.ai-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.ai-shot__bar i:nth-child(2) { background: #F0B429; }
.ai-shot__bar i:nth-child(3) { background: #2BA471; }
.ai-shot__bar span { margin-left: 8px; font-size: 11px; color: var(--ai-muted); background: var(--ai-surface); padding: 2px 10px; border-radius: 6px; }
.ai-shot img { display: block; width: 100%; }
.ai-shot--lg { max-width: none; border-radius: 14px; box-shadow: 0 24px 60px rgba(11, 37, 64, .14); border: 1px solid var(--ai-border); }
.ai-shot--lg .ai-shot__bar { height: 32px; }
.ai-figure .ai-shot img { width: 100%; border-radius: 0; box-shadow: none; }
.ai-figure:hover .ai-shot--lg { transform: translateY(-6px); }
.ai-notice { position: absolute; right: 18px; top: 12px; margin: 0; width: 124px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ai-notice img { display: block; width: 110px; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 16px 34px rgba(11, 37, 64, .28); border: 1px solid var(--ai-border); }
.ai-notice figcaption { font-size: 11px; font-weight: 700; color: var(--ai-ink); background: #fff; padding: 5px 9px; border-radius: 999px; box-shadow: 0 6px 14px rgba(11, 37, 64, .14); white-space: nowrap; }
.ai-network { display: block; width: 100%; height: auto; margin-bottom: .375rem; }
.ai-network text { font-family: var(--wp--preset--font-family--body); font-size: 12px; font-weight: 600; fill: var(--ai-on-dark); }
.ai-news__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; font-size: .875rem; line-height: 1.6; }
.ai-news__cols strong { color: #fff; }
.ai-news__cols ul { list-style: none; margin: .25rem 0 0; padding: 0; }
.ai-quote { padding-left: .875rem; border-left: 3px solid var(--ai-primary); color: #fff; }
.ai-news__card .ai-btns { margin-top: auto; }
.ai-news__card > .ai-btn { align-self: flex-start; margin-top: auto; }

/* Details (expandable) */
.ai-details { border-top: 1px solid var(--ai-border); padding-top: .75rem; }
.ai-details summary { cursor: pointer; font-weight: 600; color: var(--ai-primary); list-style: none; display: inline-flex; align-items: center; gap: .375rem; min-height: 32px; }
.ai-details summary::-webkit-details-marker { display: none; }
.ai-details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.ai-details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ai-details > :not(summary) { margin: .625rem 0 0; font-size: .9375rem; line-height: 1.65; }
.ai-details[open] > :not(summary) { animation: ai-pop .35s ease both; }
.ai-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ai-ticks li { position: relative; padding-left: 1.625rem; }
.ai-ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ai-primary); border-bottom: 2px solid var(--ai-primary); transform: rotate(-45deg); }
.ai-ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: 1.5rem; }

/* Home: projects ------------------------------------------------------------ */
.ai-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.ai-project { padding: 1.375rem; border-radius: 16px; border: 1px solid var(--ai-border); text-decoration: none; display: flex; flex-direction: column; gap: .375rem; background: #fff; }
.ai-project strong { font-family: var(--ai-display); font-size: 1.125rem; color: var(--ai-ink); }
.ai-project span { font-size: .875rem; color: var(--ai-muted); }

/* Newsletter / contact ------------------------------------------------------ */
.ai-contact { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 3rem); align-items: flex-start; }
.ai-contact > * { margin: 0 !important; }
.ai-contact__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 1.125rem; }
.ai-contact__text > * { margin: 0; }
.ai-contact__text h2 { font-size: var(--wp--preset--font-size--xx-large); }
.ai-facts { list-style: none; margin: .5rem 0 0 !important; padding: 0; display: grid; gap: .75rem; }
.ai-facts li { display: flex; align-items: center; gap: .75rem; }
.ai-facts span { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.ai-facts svg { width: 20px; height: 20px; fill: none; stroke: var(--ai-sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-facts a { color: #fff; font-weight: 600; text-decoration: none; }
.ai-form { flex: 1 1 440px; min-width: 0; background: #fff; color: var(--ai-ink); border-radius: var(--ai-radius); padding: clamp(1.5rem, 3vw, 2rem); }
.ai-form--light { border: 1px solid var(--ai-border); box-shadow: 0 18px 40px rgba(11, 37, 64, .08); }
.ai-form h2 { font-size: 1.375rem; margin: 0 0 1rem; }
.ai-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select) { width: 100% !important; max-width: 100% !important; min-height: 48px; border: 1px solid #C9D4E0 !important; border-radius: 10px !important; padding: .75rem .875rem !important; font: inherit !important; color: var(--ai-ink) !important; background: #fff !important; box-shadow: none !important; }
.ai-form textarea { min-height: 120px; }
.ai-form :where(input, textarea, select):focus { border-color: var(--ai-primary) !important; outline: 2px solid rgba(0, 119, 187, .25); outline-offset: 0; }
.ai-form .wpforms-container { margin: 0 !important; }
.ai-form .wpforms-field { padding: 0 0 1rem !important; }
.ai-form .wpforms-field-label { font-weight: 600 !important; font-size: .875rem !important; color: var(--ai-ink) !important; margin-bottom: .375rem !important; }
.ai-form .wpforms-field-sublabel { font-size: .8125rem !important; color: var(--ai-muted) !important; }
.ai-form :where(button[type="submit"], input[type="submit"], .wpforms-submit) { width: 100%; min-height: 52px !important; border: 0 !important; border-radius: 12px !important; background: var(--ai-primary) !important; color: #fff !important; font: inherit !important; font-weight: 600 !important; padding: 0 1.5rem !important; cursor: pointer; }
.ai-form :where(button[type="submit"], .wpforms-submit):hover { background: var(--ai-primary-dark) !important; }
.ai-form-fallback { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.ai-form-fallback p { margin: 0; color: var(--ai-text); }
.ai-form-fallback .wp-element-button { text-decoration: none; }

/* Page hero ------------------------------------------------------------------ */
.ai-page-hero, .ai-pc-hero { overflow: hidden; padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.ai-crumbs { font-size: .875rem; color: var(--ai-muted); margin-bottom: clamp(1.5rem, 4vw, 2rem); }
.ai-crumbs a { color: var(--ai-muted); }
.ai-crumbs a:hover { color: var(--ai-primary); }
.ai-crumbs span { color: var(--ai-ink); font-weight: 600; }
.ai-page-hero__cols, .ai-pc-hero__cols { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.ai-page-hero__text, .ai-pc-hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1.125rem; }
.ai-page-hero__text > *, .ai-pc-hero__text > * { margin: 0; }
.ai-page-hero h1, .ai-pc-hero h1 { font-size: clamp(2rem, 4.4vw, 3.125rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.ai-page-hero__sub, .ai-pc-hero__sub { font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 600; color: var(--ai-ink); }
.ai-page-hero__text p:not([class]), .ai-pc-hero__text p:not([class]) { max-width: 680px; line-height: 1.75; }
.ai-page-hero__media { flex: 1 1 360px; min-width: 0; border-radius: 24px; background: #fff; border: 1px solid var(--ai-border); padding: clamp(1rem, 3vw, 1.5rem); display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(11, 37, 64, .1); }
.ai-page-hero__media img { border-radius: 14px; max-height: 340px; width: auto; object-fit: contain; }
.ai-page-hero__media .ai-float { filter: drop-shadow(0 22px 28px rgba(11, 37, 64, .2)); max-height: 280px; }
.ai-page-hero__media--logo img { max-height: 180px; }
.ai-page-hero__icon { position: relative; flex: 0 1 320px; aspect-ratio: 1; max-width: 320px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--ai-soft) 70%); display: flex; align-items: center; justify-content: center; }
.ai-page-hero__icon > svg { width: 38%; height: 38%; fill: none; stroke: var(--ai-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ai-page-hero__icon .ai-ring { width: 100%; height: 100%; inset: 0; border-color: rgba(0, 119, 187, .35); }
.ai-facts-card { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: .5rem 1.5rem; border-radius: 24px; background: var(--ai-ink); color: var(--ai-on-dark); box-shadow: 0 24px 60px rgba(11, 37, 64, .18); }
.ai-facts-card li { display: flex; flex-direction: column; gap: .125rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ai-facts-card li:last-child { border-bottom: 0; }
.ai-facts-card span { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ai-sky); font-weight: 600; }
.ai-facts-card strong { font-family: var(--ai-display); font-size: 1.25rem; color: #fff; }

/* Figure next to text */
.ai-figure { flex: 1 1 400px; min-width: 0; margin: 0; }
.ai-figure img { display: block; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--ai-radius); box-shadow: 0 24px 60px rgba(11, 37, 64, .12); background: #fff; }
.ai-figure--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: center; }
.ai-figure--pair figcaption { grid-column: 1 / -1; }
.ai-figure figcaption { margin-top: .5rem; font-size: .875rem; color: var(--ai-muted); }

/* Media cards */
.ai-media-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ai-media-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ai-media-card { background: #fff; border: 1px solid var(--ai-border); border-radius: var(--ai-radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ai-text); }
.ai-media-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ai-surface); }
.ai-media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ai-media-card:hover .ai-media-card__img img { transform: scale(1.04); }
.ai-media-card__img--contain img { object-fit: contain; padding: 1.5rem; }
.ai-media-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.ai-media-card__body > * { margin: 0; }
.ai-media-card h3 { font-size: 1.1875rem; }
.ai-media-card__body p { font-size: .9375rem; line-height: 1.6; }
.ai-media-card__go { margin-top: auto !important; padding-top: .25rem; font-weight: 600; color: var(--ai-primary); }

/* Chips */
.ai-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ai-chips li { font-size: .8125rem; font-weight: 600; color: var(--ai-ink); background: var(--ai-soft); border-radius: 999px; padding: .375rem .75rem; }
.ai-chips--lg li { font-size: .9375rem; background: #fff; border: 1px solid var(--ai-border); padding: .5rem .875rem; transition: border-color .2s ease, transform .2s ease; }
.ai-chips--lg li:hover { border-color: var(--ai-primary); transform: translateY(-2px); }
.ai-surface .ai-chips--lg li { background: #fff; }

/* Logos */
.ai-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.ai-logo-card { min-height: 160px; background: #fff; border: 1px solid var(--ai-border); border-radius: var(--ai-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; padding: 1.5rem; text-decoration: none; text-align: center; }
.ai-logo-card img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.ai-logo-card__mark { display: flex; align-items: center; gap: .75rem; }
.ai-logo-card .ai-logo-card__mark img { max-height: 56px; }
.ai-logo-card__mark strong { font-family: var(--ai-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--ai-ink); }
.ai-logo-card > span:not(.ai-logo-card__mark) { font-size: .875rem; color: var(--ai-muted); font-weight: 600; }

/* Checks */
.ai-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .75rem; }
.ai-checks li { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--ai-border); border-radius: 14px; padding: 1rem 1.125rem; color: var(--ai-ink); font-weight: 500; line-height: 1.5; }
.ai-checks svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ai-primary); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* Stats */
.ai-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.ai-stat { padding: 1.5rem; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: .25rem; }
.ai-stat strong { font-family: var(--ai-display); font-size: 1.75rem; color: #fff; }

/* Group cards */
.ai-groups { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ai-groups--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ai-group-card { background: #fff; border: 1px solid var(--ai-border); border-radius: var(--ai-radius); padding: clamp(1.375rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: .875rem; }
.ai-group-card > * { margin: 0; }
.ai-group-card h3 { font-size: 1.1875rem; }
.ai-group-card p, .ai-group-card li { font-size: .9375rem; line-height: 1.65; }
.ai-group-card li strong { color: var(--ai-ink); }

/* About us: areas */
.ai-areas { display: flex; flex-direction: column; gap: 1.25rem; }
.ai-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: #fff; border: 1px solid var(--ai-border); }
.ai-area:nth-child(even) { background: var(--ai-surface); }
.ai-area__side { display: flex; flex-direction: column; gap: .875rem; align-items: flex-start; }
.ai-area__side > * { margin: 0; }
.ai-area__n { font-family: var(--ai-display); font-weight: 800; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ai-primary); }
.ai-area h3 { font-size: 1.5rem; }
.ai-area__sub { font-weight: 600; color: var(--ai-primary-dark); }
.ai-area__body { display: flex; flex-direction: column; gap: .875rem; }
.ai-area__body > * { margin: 0; }
.ai-area__label { font-weight: 700; color: var(--ai-ink); }
@media (max-width: 781px) { .ai-area { grid-template-columns: 1fr; } }

/* Markets */
.ai-markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.ai-market { padding: 1.5rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: .5rem; }
.ai-market:hover { border-color: rgba(124, 196, 236, .5); }
.ai-market strong { font-family: var(--ai-display); font-size: 1.375rem; color: #fff; }
.ai-market span { font-size: .9375rem; line-height: 1.6; }
.ai-market__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ai-sky); box-shadow: 0 0 0 6px rgba(124, 196, 236, .15); margin-bottom: .5rem; }

/* Document links */
.ai-doclinks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ai-doclinks a { display: flex; gap: .875rem; align-items: center; padding: 1rem 1.25rem; border-radius: 14px; background: #fff; border: 1px solid var(--ai-border); text-decoration: none; color: var(--ai-ink); font-weight: 600; line-height: 1.45; transition: border-color .2s ease, transform .2s ease; }
.ai-doclinks a:hover { border-color: var(--ai-primary); transform: translateX(4px); }
.ai-doclinks svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--ai-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Contact page */
.ai-contact-page { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: flex-start; }
.ai-contact-cards { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.ai-contact-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: center; padding: 1.125rem 1.25rem; border-radius: 16px; border: 1px solid var(--ai-border); background: #fff; }
.ai-contact-card .ai-card__icon { grid-row: span 2; }
.ai-contact-card__label { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-muted); }
.ai-contact-card a, .ai-contact-card strong { color: var(--ai-ink); font-weight: 600; text-decoration: none; line-height: 1.4; }
.ai-contact-card a:hover { color: var(--ai-primary); }
.ai-contact-page .ai-form { flex: 1.4 1 440px; }
.ai-mailbox { flex: 1.4 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .875rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: var(--ai-ink); color: var(--ai-on-dark); box-shadow: 0 24px 60px rgba(11, 37, 64, .16); }
.ai-mailbox > * { margin: 0; }
.ai-mailbox .ai-kicker { color: var(--ai-sky); }
.ai-mailbox h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); word-break: break-word; }
.ai-mailbox h2 a { color: #fff; text-decoration: none; }
.ai-mailbox h2 a:hover { color: var(--ai-sky); }
.ai-mailbox .ai-card__icon { background: rgba(255, 255, 255, .1); }
.ai-mailbox .ai-card__icon svg { stroke: var(--ai-sky); }

/* CTA box */
.ai-section--cta { padding-top: clamp(2.5rem, 6vw, 4rem); }
.ai-cta { position: relative; overflow: hidden; border-radius: 24px; background: var(--ai-ink); color: var(--ai-on-dark); padding: clamp(1.75rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.ai-cta .ai-ring { right: -60px; top: -60px; width: 260px; height: 260px; border-color: var(--ai-primary); }
.ai-cta__text { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.ai-cta__text > * { margin: 0; }
.ai-cta__text h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; }
.ai-cta__text .ai-kicker { color: var(--ai-sky); }
.ai-cta__text a { color: #fff; }
.ai-cta > .ai-btn { position: relative; }
.ai-section--cta + .ai-section--cta { padding-top: 0; }

/* Rings and bubbles (decorative) */
.ai-ring { position: absolute; border-radius: 50%; border: 2px solid var(--fl-dot, var(--ai-primary)); pointer-events: none; }
.ai-bubble { position: absolute; bottom: -20px; border-radius: 50%; background: var(--fl-dot); pointer-events: none; opacity: 0; }
.ai-bubble.b1 { left: 14%; width: 14px; height: 14px; }
.ai-bubble.b2 { left: 30%; width: 9px; height: 9px; animation-delay: 1.6s !important; }
.ai-bubble.b3 { left: 62%; width: 12px; height: 12px; animation-delay: 3.1s !important; }
.ai-bubble.b4 { left: 80%; width: 8px; height: 8px; animation-delay: 4.4s !important; }
.ai-bubble.b5 { left: 46%; width: 6px; height: 6px; animation-delay: 2.3s !important; }

/* Push Caps ----------------------------------------------------------------- */
.ai-flavor { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: .875rem; }
.ai-flavor__tile { position: relative; overflow: hidden; border-radius: 24px; height: clamp(300px, 40vw, 380px); display: flex; align-items: center; justify-content: center; background-color: var(--fl-bg); transition: background-color .5s ease; }
.ai-flavor__tile .ai-ring { width: 260px; height: 260px; }
.ai-cap { position: relative; isolation: isolate; display: block; line-height: 0; width: clamp(170px, 22vw, 230px); filter: drop-shadow(0 22px 28px rgba(11, 37, 64, .22)); }
/* The cap takes the colour of the chosen flavor: a grey version of the photo is multiplied with the colour, masked to the cap shape. */
.ai-cap img { display: block; width: 100%; filter: grayscale(1) brightness(1.12) contrast(1.35); }
.ai-cap::after { content: ""; position: absolute; inset: 0; background-color: var(--fl-dot); -webkit-mask: url(../img/cap-yellow.webp) center / contain no-repeat; mask: url(../img/cap-yellow.webp) center / contain no-repeat; mix-blend-mode: multiply; transition: background-color .5s ease; }
.ai-flavor__label { position: absolute; left: 20px; top: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--fl-ink); transition: color .5s ease; }
.ai-flavor__label span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai-flavor__label strong { font-family: var(--ai-display); font-size: 1.625rem; }
.ai-flavor__badges { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 6px; }
.ai-flavor__badges span { font-size: .75rem; font-weight: 700; color: var(--ai-ink); background: rgba(255, 255, 255, .85); padding: .375rem .625rem; border-radius: 999px; }
.ai-flavor__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ai-chip { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; background: #fff; color: var(--ai-ink); border: 1px solid #C9D4E0; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.ai-chip:hover { transform: translateY(-2px); }
.ai-chip i { width: 10px; height: 10px; border-radius: 50%; }
.ai-chip[aria-pressed="true"] { background: var(--ai-ink); color: #fff; border-color: var(--ai-ink); box-shadow: 0 8px 18px rgba(11, 37, 64, .18); }

/* Cooperation timeline */
.ai-timeline { position: relative; }
.ai-timeline::before, .ai-timeline::after { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 3px; border-radius: 2px; background: #E3EBF2; }
.ai-timeline::after { background: var(--ai-primary); transform-origin: left; }
.ai-timeline ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.ai-timeline li { display: flex; flex-direction: column; gap: .875rem; }
.ai-timeline li span { width: 48px; height: 48px; border-radius: 50%; background: var(--ai-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--ai-display); font-weight: 800; font-size: .9375rem; box-shadow: 0 0 0 6px #fff; }
.ai-timeline li strong { color: var(--ai-ink); line-height: 1.45; }
@media (max-width: 600px) {
	.ai-timeline::before, .ai-timeline::after { left: 23px; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; transform-origin: top; }
	.ai-timeline li { flex-direction: row; align-items: center; }
}

/* Tabs and product cards */
.ai-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--ai-border); }
.ai-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: .5rem 1.125rem; border: 0; border-radius: 10px; font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; background: transparent; color: var(--ai-ink); transition: background-color .25s ease, color .25s ease; text-align: left; }
.ai-tabs button span { font-size: .75rem; font-weight: 600; opacity: .8; }
.ai-tabs button[aria-selected="true"] { background: var(--ai-primary); color: #fff; }
.ai-tabs button:hover:not([aria-selected="true"]) { background: var(--ai-soft); }
.ai-panel + .ai-panel { margin-top: 2.5rem !important; }
.ai-panel__title { font-size: 1.25rem; margin: 0 0 1.25rem; }
.js .ai-panel__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .ai-panel + .ai-panel { margin-top: 0 !important; }
.ai-panel[hidden] { display: none; }
.ai-panel.is-shown { animation: ai-pop .45s ease both; }
.ai-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.ai-product { background: #fff; border-radius: var(--ai-radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; }
.ai-product__media { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; }
.ai-product__media img { max-height: 170px; width: auto; filter: drop-shadow(0 14px 18px rgba(11, 37, 64, .16)); transition: transform .4s ease; }
.ai-product:hover .ai-product__media img:first-child { transform: translateY(-6px) rotate(-4deg); }
.ai-product__media img { min-width: 0; max-width: 48%; height: auto; }
.ai-product__media img:only-child { max-width: 80%; }
.ai-product__media .ai-product__extra { max-height: 120px; max-width: 26%; }
.ai-product__media .ai-product__extra[width="128"] { max-height: 64px; }
.ai-product__body { padding: 1.5rem 1.625rem 1.625rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }
.ai-product__body > * { margin: 0; }
.ai-product h4 { font-size: 1.3125rem; }
.ai-product__lead { font-weight: 600; color: var(--ai-ink); }
.ai-product__body p { font-size: .9375rem; line-height: 1.6; }
.ai-product__note { font-size: .8125rem !important; color: var(--ai-muted); margin-top: auto !important; }
.ai-product__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: auto !important; padding-top: .25rem; }
.ai-product__note + .ai-product__links { margin-top: 0 !important; }
.ai-product__links a { font-weight: 600; text-decoration: none; }
.ai-product .ai-details { border-top: 0; padding-top: 0; }
.ai-pdf-all { margin-bottom: 0; }

/* Simple pages (legal, posts) ------------------------------------------------ */
.ai-page-head { background-color: var(--ai-ink); color: var(--ai-on-dark); padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3rem); margin-bottom: 0 !important; }
.ai-page-head :where(h1, .wp-block-post-title, .wp-block-query-title) { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; }
.ai-page-head .wp-block-post-date { color: var(--ai-sky); }
.ai-page-body { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: var(--ai-section); }
.ai-prose h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.ai-prose :where(p, li) { line-height: 1.75; }
.ai-posts { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: var(--ai-section); }
.ai-post-card { padding: 1.5rem; border-radius: var(--ai-radius); border: 1px solid var(--ai-border); height: 100%; }
.ai-404 { padding-top: var(--ai-section); padding-bottom: var(--ai-section); background-color: var(--ai-ink); color: var(--ai-on-dark); }
.ai-404 h1 { color: #fff; }
.ai-404 .ai-kicker { color: var(--ai-sky); }

/* Brand sale pages with their own HTML (class .aiv) */
.ai-raw .ai-raw__content { margin: 0; }
.ai-raw .ai-raw__content > * { max-width: none; }

/* Complianz: hide document links whose title is empty (no page set), so they are not empty links. */
.cmplz-documents .cmplz-link:empty, .cmplz-links .cmplz-link:empty { display: none !important; }

/* Footer --------------------------------------------------------------------- */
.ai-footer { padding-top: 3.5rem; padding-bottom: 2rem; border-top: 1px solid var(--ai-border); font-size: .875rem; }
.ai-footer__grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.ai-footer__brand { display: flex; flex-direction: column; gap: .875rem; }
.ai-footer__brand .ai-logo img { height: 40px; }
.ai-footer__about { max-width: 280px; color: var(--ai-muted); line-height: 1.6; margin: 0; }
.ai-footer__contact { margin: 0; line-height: 1.8; color: var(--ai-muted); }
.ai-footer__contact a { color: var(--ai-ink); font-weight: 600; text-decoration: none; }
.ai-footer__title { margin: 0; font-family: var(--wp--preset--font-family--body); font-size: .875rem; font-weight: 700; letter-spacing: 0; color: var(--ai-ink); }
.ai-footer__links { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .625rem; }
.ai-footer__links a { color: var(--ai-text); text-decoration: none; }
.ai-footer__links a:hover { color: var(--ai-primary); }
.ai-footer__bottom { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--ai-border); color: var(--ai-muted); font-size: .8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.ai-footer__bottom p { margin: 0; }
.ai-footer__bottom a { color: var(--ai-muted); }
@media (max-width: 1080px) { .ai-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ai-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ai-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ai-mobile-bar { display: none; }
@media (max-width: 781px) {
	.ai-mobile-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: .625rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ai-border); box-shadow: 0 -8px 24px rgba(11, 37, 64, .06); }
	.ai-mobile-bar a { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; text-decoration: none; }
	.ai-mobile-bar__call { border: 1px solid #C9D4E0; color: var(--ai-ink); }
	.ai-mobile-bar__cta { flex: 1.4 !important; background: var(--ai-primary); color: #fff; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Animations (off with reduced motion) --------------------------------------- */
@keyframes ai-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ai-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.ai-in { animation: ai-in .7s ease both; }
	.ai-in.d1 { animation-delay: .12s; }
	.ai-in.d2 { animation-delay: .24s; }
	.ai-in.d3 { animation-delay: .36s; }
	.ai-in.d4 { animation-delay: .48s; }
	.ai-pan { animation: ai-pan 8s linear infinite; }
	@keyframes ai-pan { to { background-position: 56px 56px; } }
	.ai-glow { animation: ai-glow 6s ease-in-out infinite; }
	@keyframes ai-glow { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .6; transform: scale(1.08); } }
	.ai-marquee__track { animation: ai-marquee 30s linear infinite; }
	.ai-marquee:hover .ai-marquee__track { animation-play-state: paused; }
	@keyframes ai-marquee { to { transform: translateX(-50%); } }
	.ai-float { animation: ai-float 5s ease-in-out infinite; }
	@keyframes ai-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
	.ai-bob { animation: ai-bob 4s ease-in-out infinite; }
	@keyframes ai-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
	.ai-dash { animation: ai-dash 1.6s linear infinite; }
	@keyframes ai-dash { to { stroke-dashoffset: -28; } }
	.ai-ping { transform-box: fill-box; transform-origin: center; animation: ai-ping 2.4s ease-out infinite; }
	.ai-ping.p2 { animation-delay: 1.2s; }
	@keyframes ai-ping { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
	.ai-ring { animation: ai-ring 2.6s ease-out infinite; }
	.ai-ring.r2 { animation-delay: 1.3s; }
	@keyframes ai-ring { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
	.ai-bubble { animation: ai-bubble 6s linear infinite; }
	@keyframes ai-bubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-320px) scale(1.1); opacity: 0; } }
	.ai-timeline::after { animation: ai-fill 5s ease-in-out infinite; }
	@keyframes ai-fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
	.ai-flavor__label strong.is-new { animation: ai-pop .45s ease both; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
	@keyframes ai-fill { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }
}
@media (prefers-reduced-motion: reduce) {
	.ai-lift, .ai-lift:hover, .ai-chip:hover { transition: none; transform: none; }
	.ai-ring, .ai-bubble { display: none; }
}

/* Reveal on scroll (class added by theme.js only when motion is allowed) */
.ai-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--ai-delay, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--ai-delay, 0ms); }
.ai-reveal.is-in { opacity: 1; transform: none; }
