/* Styles for .ai blocks (AI-automatisering page, AI OS band); builds on the site red and Open Sans. */
.ai {
    --red: #D81B43; /* brand red darkened to pass 4.5:1 for text and white-on-red buttons */
    --red-dark: #b8123a;
    --ink: #1f2430;
    --muted: #5d6270;
    --line: #e6e3e8;
    --tint: #faf7f8;
    --night: #1b1d24;
    color: var(--muted);
}
.ai h1, .ai h2, .ai h3, .ai h4 { color: var(--ink); text-wrap: balance; }
.ai section.unpad { padding-block: 5.5em; }
.ai .section-head { max-width: 40em; margin-bottom: 2.5em; }
.ai .section-head .lead { margin: 0; }

/* Buttons */
.ai .cta-row { display: flex; flex-wrap: wrap; gap: 1em 1.5em; align-items: center; margin-top: 2em; }
.ai .btn-red {
    display: inline-block; padding: .9em 1.6em; border-radius: 4px;
    background: var(--red); color: #fff; font-weight: 600; letter-spacing: .02em;
    text-decoration: none; transition: background .2s, transform .2s;
}
.ai .btn-red:hover, .ai .btn-red:focus-visible { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.ai .btn-red:focus-visible, .ai summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ai .link-quiet { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.ai .link-quiet:hover { text-decoration-color: var(--red); }

/* Hero */
.ai section.hero { background: linear-gradient(180deg, #fff, var(--tint)); padding-block: 4.5em 5em; }
.ai .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3em; align-items: center; }
.ai .hero h1 { font-size: 2.9em; line-height: 1.12; font-weight: 300; margin-bottom: .5em; }

/* Hero illustration: one mail handled end to end */
.ai .flow {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 20px 50px -25px rgba(31, 36, 48, .35);
    padding: 1.5em 1.75em; font-size: .92em;
}
.ai .flow-label { font-size: .85em; font-weight: 600; color: var(--muted); margin-bottom: 1.25em; }
.ai .flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.ai .flow ol::before { content: ""; position: absolute; left: 5px; top: .6em; bottom: .6em; width: 2px; background: var(--line); }
.ai .flow li { position: relative; display: grid; grid-template-columns: 3.6em 1fr; gap: .5em; padding: 0 0 1.1em 1.6em; }
.ai .flow li:last-child { padding-bottom: 0; }
.ai .flow li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid var(--red);
}
.ai .flow li:last-child::before { background: var(--red); }
.ai .flow time { font-variant-numeric: tabular-nums; color: var(--muted); }
.ai .flow b { display: block; color: var(--ink); font-weight: 600; }
.ai .flow .chip {
    display: inline-block; margin-top: .3em; padding: .1em .6em; border-radius: 99px;
    background: var(--tint); color: var(--red-dark); font-size: .85em; font-weight: 600;
}

/* Home hero: promise left, a pattern built from the logo's own shapes on the right (desktop only) */
.hero-pattern { position: absolute; inset: 0; background: #1b1d24; }
.hero-art { display: block; width: 100%; height: 100%; }
.hero-art .ha-orbit { transform-box: view-box; transform-origin: 300px 330px; animation: ha-spin 60s linear infinite; }
@keyframes ha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .hero-art * { animation: none !important; }
}
.ai .hero-promise { font-size: 46px; font-weight: 300; line-height: 1.1; letter-spacing: -.01em; margin-bottom: .5em; }
@media (max-width: 767px) {
    .ai .hero-promise { font-size: 36px; }
}

/* Tech stack strip: slow loop, no hover behaviour, static row for reduced motion */
.ai section.stack-section { padding-block: 0 5em; }
.ai .stack {
    overflow: hidden; cursor: default; user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ai .stack-track { display: flex; width: max-content; animation: stack-scroll 45s linear infinite; }
.ai .stack-group { display: flex; gap: 3.5em; padding: 0 3.5em 0 0; margin: 0; list-style: none; }
.ai .stack-group li { margin: 0; display: flex; align-items: center; gap: .6em; color: #6b707b; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ai .stack-group svg { width: 26px; height: 26px; fill: currentColor; }
@keyframes stack-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ai .stack { -webkit-mask-image: none; mask-image: none; }
    .ai .stack-track { animation: none; width: auto; }
    .ai .stack-group { flex-wrap: wrap; gap: 1.5em 3em; padding: 0 max(16px, env(safe-area-inset-left, 0px)); max-width: 1140px; margin-inline: auto; }
    .ai .stack-group[aria-hidden] { display: none; }
}

/* Use cases */
.ai .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25em; }
.ai .case {
    border: 1px solid var(--line); border-radius: 8px; padding: 1.75em;
    transition: border-color .2s, transform .2s;
}
.ai .case:hover { border-color: var(--red); transform: translateY(-2px); }
.ai .case h3 { font-size: 1.15em; font-weight: 600; margin-bottom: .5em; }
.ai .case p { margin: 0; }
.ai .case .tag { display: block; width: 1.75em; height: 3px; background: var(--red); margin-bottom: 1.25em; }

/* AI OS band */
.ai .os { background: var(--night); color: #b9bcc6; border-top: 1px solid rgba(255, 255, 255, .08); }
.ai .os h2 { color: #fff; }
.ai .os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.ai .os .lead { color: #d3d5dc; }
.ai .hub { position: relative; aspect-ratio: 1; max-width: 360px; width: 100%; margin-inline: auto; }
.ai .hub::before {
    content: ""; position: absolute; inset: 14%; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 50%;
}
/* Data flowing from each connected system into the core: the page's one motion moment. */
.ai .hub-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai .hub-lines path { stroke: rgba(255, 255, 255, .13); stroke-width: .35; fill: none; }
.ai .hub-dots circle { fill: #ff6b8a; opacity: 0; }
.ai .hub-core { animation: hub-breathe 4s ease-in-out infinite; }
@keyframes hub-breathe {
    0%, 100% { box-shadow: 0 0 0 10px rgba(216, 27, 67, .18), 0 0 0 22px rgba(216, 27, 67, .08); }
    50% { box-shadow: 0 0 0 14px rgba(216, 27, 67, .22), 0 0 0 30px rgba(216, 27, 67, .06); }
}
@media (prefers-reduced-motion: reduce) {
    .ai .hub-dots { display: none; }
    .ai .hub-core { animation: none; }
}
.ai .hub-core {
    position: absolute; inset: 34%; border-radius: 50%; background: var(--red);
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.2em; letter-spacing: .04em;
    box-shadow: 0 0 0 10px rgba(216, 27, 67, .18), 0 0 0 22px rgba(216, 27, 67, .08);
}
.ai .hub span:not(.hub-core) {
    position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
    padding: .35em .85em; border-radius: 99px; font-size: .85em; color: #fff;
    background: #2a2d37; border: 1px solid rgba(255, 255, 255, .14);
}

/* Process: a real sequence, so numbered */
.ai .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2em; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.ai .steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.5em; position: relative; }
.ai .steps li::before {
    content: counter(step); position: absolute; top: -1.05em; left: 0;
    width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center;
    background: var(--red); color: #fff; font-weight: 700; font-size: .95em;
}
.ai .steps h3 { font-size: 1.15em; font-weight: 600; margin: .4em 0 .4em; }
.ai .steps p { margin: 0; }

/* Why me */
.ai .why { background: var(--tint); }
.ai .why-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3em; align-items: start; }
.ai .contact-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.75em; }
.ai .contact-card dl { margin: 0; display: grid; gap: 1em; }
.ai .contact-card dt { font-size: .85em; font-weight: 600; color: var(--muted); }
.ai .contact-card dd { margin: .2em 0 0; font-size: 1.1em; }
.ai .contact-card a { color: var(--red); text-decoration: none; }
.ai .contact-card a:hover { text-decoration: underline; }

/* FAQ */
.ai .faq { max-width: 46em; }
.ai details { border-bottom: 1px solid var(--line); }
.ai summary {
    cursor: pointer; list-style: none; padding: 1.25em 2em 1.25em 0; position: relative;
    color: var(--ink); font-size: 1.1em; font-weight: 600;
}
.ai summary::-webkit-details-marker { display: none; }
.ai summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--red); font-size: 1.5em; font-weight: 300; transition: transform .2s;
}
.ai details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ai details p { margin: 0 0 1.25em; max-width: 40em; }

/* Closing CTA */
.ai section.closing { background: var(--red); color: #fff; padding-block: 4em; }
.ai .closing h2 { color: #fff; margin: 0 0 .3em; }
.ai .closing p { color: #fff; margin: 0; }
.ai .closing-grid { display: flex; flex-wrap: wrap; gap: 1.5em 3em; align-items: center; justify-content: space-between; }
.ai .closing .btn-red { background: #fff; color: var(--red-dark); }
.ai .closing .btn-red:hover { background: var(--ink); color: #fff; }

/* Case study: Stack-style imageblock, tinted half bleeds to the left edge */
.ai section.case-study { padding-block: 0; position: relative; z-index: 0; overflow: hidden; }
.ai .case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5em; align-items: stretch; }
.ai .case-visual { position: relative; padding-block: 5.5em; display: grid; gap: 3.5em; align-content: center; }
.ai .case-visual::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -2.5em; width: 100vw;
    background: var(--tint);
}
.ai .case-text { padding-block: 5.5em; }
.ai .case-text .lead { margin-bottom: 2em; }

/* Mock of what the team receives: shapes only, no invented figures */
.ai .mock { position: relative; padding: 1em 0 2.5em; }
.ai .mock-mail {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 24px 60px -30px rgba(31, 36, 48, .4); width: 88%;
    font-size: .9em;
}
.ai .mock-bar { display: flex; gap: 6px; padding: .8em 1em; border-bottom: 1px solid var(--line); }
.ai .mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ai .mock-head { display: flex; justify-content: space-between; padding: 1.1em 1.4em 0; color: var(--ink); }
.ai .mock-head time { font-variant-numeric: tabular-nums; color: var(--muted); }
.ai .mock-from { padding: .2em 1.4em 1em; font-size: .85em; color: var(--muted); border-bottom: 1px solid var(--line); }
.ai .mock-rows { margin: 0; padding: 1.2em 1.4em 1.4em; display: grid; gap: .9em; }
.ai .mock-rows div { display: grid; grid-template-columns: 9em 1fr; align-items: center; gap: 1em; }
.ai .mock-rows dt { font-weight: 400; color: var(--muted); }
.ai .mock-rows dd { margin: 0; height: 8px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.ai .mock-rows i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), #ff7a95); }
.ai .mock-chat {
    position: absolute; right: 0; bottom: 0; width: 62%;
    background: var(--night); color: #e4e5ea; border-radius: 14px 14px 4px 14px;
    padding: 1em 1.2em; font-size: .88em; box-shadow: 0 20px 40px -20px rgba(31, 36, 48, .6);
}
.ai .mock-chat-name { font-size: .85em; font-weight: 600; color: #ff6b8a; margin-bottom: .4em; }
.ai .mock-chat p { margin: 0; font-size: 1em; line-height: 1.55; color: #e4e5ea; }
.ai .mock-chat b { color: #fff; font-weight: 700; }
.ai .mock-caption { position: absolute; left: 0; bottom: -1.5em; font-size: .78em; color: var(--muted); }

/* Rhythm: same timeline language as the hero */
.ai .rhythm { list-style: none; margin: 0; padding: 0; position: relative; }
.ai .rhythm::before { content: ""; position: absolute; left: 6.75em; top: .5em; bottom: .5em; width: 2px; background: var(--line); }
.ai .rhythm li { margin: 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 2.5em; padding-bottom: 1.4em; position: relative; }
.ai .rhythm li:last-child { padding-bottom: 0; }
.ai .rhythm li::before {
    content: ""; position: absolute; left: calc(6.75em - 5px); top: .45em; width: 12px; height: 12px;
    border-radius: 50%; background: #fff; border: 2px solid var(--red);
}
.ai .rhythm .when { font-size: .85em; font-weight: 700; color: var(--red-dark); font-variant-numeric: tabular-nums; padding-top: .1em; }
.ai .rhythm h3 { font-size: 16px; font-weight: 600; margin: 0 0 .25em; line-height: 1.4; }
.ai .rhythm p { margin: 0; font-size: 14px; }

.ai .case-note {
    padding: 1.4em 1.6em; border-radius: 8px; background: #fff; border-left: 3px solid var(--red);
    display: grid; gap: .35em;
}
.ai .case-note b { color: var(--ink); font-weight: 700; }
.ai .case-note span { color: var(--ink); font-size: 14px; line-height: 1.6; }

@media (min-width: 992px) {
    .ai .hub { margin-inline: auto -16px; } /* CRM pill lands on the content edge */
}
@media (max-width: 991px) {
}

@media (max-width: 991px) {
    .ai .hero-grid, .ai .os-grid, .ai .why-grid { grid-template-columns: 1fr; }
    .ai .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ai section.unpad { padding-block: 3.5em; }
    .ai section.case-study { padding-block: 0; }
    .ai .hero h1 { font-size: 2.1em; }
    .ai .cases, .ai .steps { grid-template-columns: 1fr; }
    .ai .steps { gap: 2.5em; }
    .ai .hub span:not(.hub-core) { font-size: .75em; }
}
@media (prefers-reduced-motion: reduce) {
    .ai * { transition: none !important; }
}

@media (max-width: 991px) {
    .ai .case-grid { grid-template-columns: 1fr; gap: 0; }
    .ai .case-visual { padding-block: 3.5em; }
    .ai .case-visual::before { left: 50%; right: auto; transform: translateX(-50%); }
    .ai .case-text { order: -1; padding-block: 3.5em 0; }
}
@media (max-width: 767px) {
    .ai .mock-mail { width: 100%; }
    .ai .mock-chat { position: relative; width: 85%; margin: -1.5em 0 0 auto; }
    .ai .mock-caption { position: static; margin-top: .8em; }
    .ai .mock { padding-bottom: 0; }
    .ai .mock-rows div { grid-template-columns: 6em 1fr; }
    .ai .rhythm::before { left: 6em; }
    .ai .rhythm li { grid-template-columns: 5em 1fr; gap: 2em; }
    .ai .rhythm li::before { left: calc(6em - 5px); }
}
