/* HG-0034R11: Canonical business AI page components, using existing HG design tokens. */
/* Same editorial split-hero vocabulary as the Business Solutions page. */
.page-hero.hg-ai-hero{display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;min-height:520px;background:var(--paper)}
.hg-ai-hero::before,.hg-ai-hero::after{display:none!important}
.hg-ai-hero .page-inner{min-width:0;padding:clamp(42px,5vw,90px) clamp(20px,4vw,64px)!important;min-height:0!important;display:flex;flex-direction:column;justify-content:center}
.hg-ai-hero .page-inner h1{font-size:clamp(3.35rem,6.3vw,7.7rem);line-height:.95;max-width:13ch;overflow-wrap:normal}
.hg-ai-hero .page-inner p{max-width:62ch}
.page-hero.hg-ai-hero .hg-ai-hero-figure{display:grid!important;place-items:center;min-width:0;min-height:0;overflow:hidden;background:var(--paper);border-left:2px solid var(--ink)}
.page-hero.hg-ai-hero .hg-ai-hero-figure::before,.page-hero.hg-ai-hero .hg-ai-hero-figure::after{display:none!important;content:none!important}
.page-hero.hg-ai-hero .hg-ai-hero-figure img{display:block;width:100%;height:100%;max-height:660px;min-height:0!important;object-fit:contain!important;object-position:center;background:var(--paper)}
.hg-ai-back{margin:26px 0 0}
.hg-ai-back a{color:var(--ink);font-weight:800;text-decoration:underline;text-decoration-color:var(--blue);text-underline-offset:6px}
.hg-ai-intro{max-width:88ch;line-height:1.7;font-size:clamp(1rem,1.6vw,1.26rem);margin:20px 0 28px}
.hg-ai-teaser{background:var(--paper);border-top:2px solid var(--ink)}
.hg-ai-teaser h2,.hg-ai-examples h2,.hg-ai-architecture h2,.hg-ai-workflow h2,.hg-ai-faq h2,.hg-ai-visual-intro h2{font-size:clamp(2.1rem,4.5vw,4.7rem);line-height:1.04;max-width:24ch;overflow-wrap:break-word}
.hg-ai-teaser .hg-ai-feature-figure,.hg-ai-visual-intro .hg-ai-feature-figure{max-width:100%}
.hg-ai-feature-figure{display:block;overflow:hidden;margin:30px 0 0;border:1px solid var(--ink);background:var(--paper)}
.hg-ai-feature-figure img{display:block;width:100%;height:auto;object-fit:contain;object-position:center;max-width:none;aspect-ratio:auto}
.hg-ai-teaser-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-left:1px solid var(--ink);border-top:1px solid var(--ink);margin:0}
.hg-ai-teaser-card{background:var(--paper);padding:clamp(16px,2vw,30px);min-width:0;border-right:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.hg-ai-teaser-card:nth-child(2n){background:#fff}
/* Four small original illustrations: clean inset, same frame in PT/ES/EN. */
.hg-ai-card-art{width:clamp(108px,11vw,164px);aspect-ratio:1;max-width:100%;margin:0 0 22px;border:1px solid var(--ink);background:#fff;overflow:hidden;display:grid;place-items:center}
.hg-ai-card-art img{width:100%;height:100%;display:block;object-fit:contain;object-position:center}
.hg-ai-card-copy{min-width:0}
.hg-ai-teaser-card{display:flex;flex-direction:column;align-items:flex-start}
.hg-ai-teaser-card h3{margin:10px 0}

.hg-ai-teaser-card h3{font:800 clamp(1.2rem,1.8vw,1.8rem)/1.14 var(--display);margin:15px 0}
.hg-ai-teaser-card p{line-height:1.65;font-size:.95rem;overflow-wrap:anywhere;margin:0}
.hg-ai-teaser-action{padding-top:22px;display:flex;align-items:center;gap:15px 22px;flex-wrap:wrap}
.hg-ai-teaser-action .btn{max-width:100%;white-space:normal;text-align:center;line-height:1.25;min-height:44px}
.hg-ai-teaser-action p{font-size:.85rem;color:var(--ink);line-height:1.55;max-width:43ch}
.hg-ai-visual-intro{padding-top:clamp(30px,5vw,76px)}
.hg-ai-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ink);border-left:1px solid var(--ink);margin-top:28px}
.hg-ai-card{min-width:0;padding:clamp(18px,2.5vw,32px);border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);background:var(--paper)}
.hg-ai-card:nth-child(even){background:#fff}
.hg-ai-card h3{font:800 clamp(1.3rem,2vw,2rem)/1.14 var(--display);margin:16px 0 12px}
.hg-ai-card p{font:500 clamp(.92rem,1vw,1rem)/1.66 var(--body);margin:0;overflow-wrap:anywhere}
.hg-ai-extras-kicker{margin-top:clamp(36px,5vw,70px)}
.hg-ai-architecture{background:#fff;border-top:2px solid var(--ink)}
.hg-ai-hardware-figure{margin:28px 0;border:1px solid var(--ink)}
.hg-ai-architecture-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;border-top:1px solid var(--ink);border-left:1px solid var(--ink)}
.hg-ai-architecture-flow li{min-width:0;padding:clamp(18px,2vw,28px);border-right:1px solid var(--ink);border-bottom:1px solid var(--ink);background:var(--paper)}
.hg-ai-architecture-flow li:nth-child(2){background:var(--yellow)}
.hg-ai-architecture-flow li p{line-height:1.6;margin:15px 0 0}
.hg-ai-competence{border-left:5px solid var(--blue);padding:18px 24px;background:var(--paper);margin-top:24px}
.hg-ai-competence h3{font:800 clamp(1.25rem,2vw,2rem)/1.1 var(--display);margin:0 0 12px}
.hg-ai-competence p{line-height:1.65;max-width:85ch}
.hg-ai-workflow{background:var(--yellow)}
.hg-ai-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:14px;margin:32px 0 24px;padding:0}
.hg-ai-steps li{background:var(--paper);border:1px solid var(--ink);padding:20px;min-width:0}
.hg-ai-steps li strong{font:800 1.2rem var(--display)}
.hg-ai-steps li p{margin:12px 0 0;font-size:.93rem;line-height:1.55}
.hg-ai-trust{background:#fff;border-left:5px solid var(--blue);padding:19px;line-height:1.65;margin:20px 0}
.hg-ai-faq-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--ink);border-left:1px solid var(--ink);margin:24px 0}
.hg-ai-faq-item{min-width:0;padding:clamp(18px,2vw,28px);border-right:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.hg-ai-faq-item:nth-child(3n){background:var(--paper)}
.hg-ai-faq-item h3{font:800 clamp(1.2rem,1.8vw,1.65rem)/1.25 var(--display);margin:0 0 14px}
.hg-ai-faq-item p{line-height:1.65;margin:0}
@media(max-width:1023px){.hg-ai-teaser-grid,.hg-ai-architecture-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-ai-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-ai-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.hg-ai-hero .page-inner{padding:38px 20px!important}.hg-ai-teaser-grid,.hg-ai-cards,.hg-ai-architecture-flow,.hg-ai-steps,.hg-ai-faq-list{grid-template-columns:minmax(0,1fr)}.hg-ai-card,.hg-ai-teaser-card{padding:20px}.hg-ai-teaser-action{align-items:stretch}.hg-ai-teaser-action .btn{width:100%}.hg-ai-feature-figure{margin-top:20px}.hg-ai-competence{padding:16px}}

.hg-ai-inline-link{margin-top:18px}.hg-ai-inline-link a{color:var(--ink);font-weight:800;text-decoration:underline;text-decoration-color:var(--blue);text-underline-offset:4px;overflow-wrap:anywhere}.hg-ai-inline-link a:focus-visible,.hg-ai-back a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}

/* R12 layout review: preserve the original aspect ratio, never the legacy red diagonal. */
@media(max-width:830px){
 .page-hero.hg-ai-hero{grid-template-columns:minmax(0,1fr)!important;min-height:0}
 .page-hero.hg-ai-hero .hg-ai-hero-figure{border-left:0;border-top:2px solid var(--ink);padding:0;min-height:0;height:auto}
 .page-hero.hg-ai-hero .hg-ai-hero-figure img{height:auto!important;max-height:none;min-height:0!important;object-fit:contain!important}
 .hg-ai-hero .page-inner{padding:clamp(36px,5vw,64px) clamp(20px,4vw,64px)!important}
}
@media(max-width:620px){
 .hg-ai-hero .page-inner h1{font-size:clamp(3.15rem,10.7vw,5.1rem);line-height:.98;overflow-wrap:break-word}
 .hg-ai-teaser-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:start}
 .hg-ai-card-art{width:112px;margin:0}
 .hg-ai-teaser-card h3{margin:6px 0 8px}
}
@media(max-width:360px){.hg-ai-teaser-card{grid-template-columns:88px minmax(0,1fr);gap:12px}.hg-ai-card-art{width:88px}}
