/* AI feature pages (views/site/ai.php) and their hub (views/site/pages/ai.php) */
.ai section.block { padding-block: 96px 0; }

.ai-hero-wrap { padding-block: 56px 0; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.ai-hero { display: grid; gap: 18px; justify-items: start; }
.ai-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.ai-crumbs a { color: inherit; text-decoration: none; }
.ai-crumbs a:hover { color: var(--ink); }
.ai-hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.ai-hero .lead { max-width: 56ch; }
.ai-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ai-where { color: var(--ink-muted); font-size: 15px; max-width: 68ch; }
.ai-where b { color: var(--ink); }

.ai-hero-media { display: grid; gap: 14px; }
.ai-icon-tile { width: 100%; max-width: 340px; aspect-ratio: 1.15; justify-self: center; border-radius: 32px; background: linear-gradient(155deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; }
.ai-icon-tile svg { width: 96px; height: 96px; color: var(--accent); }
.ai-hero-media .frame { box-shadow: var(--shadow-lg); }
.ai-hero-media img { width: 100%; height: auto; display: block; }
.ai-hero-shots { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: end; }
@media (max-width: 980px) { .ai-hero-grid { grid-template-columns: 1fr; } .ai-hero-media { order: -1; max-width: 420px; margin-inline: auto; } }
@media (max-width: 560px) { .ai-hero-shots { grid-template-columns: 1fr; } .ai-hero-shots > div:last-child { display: none; } }

.ai-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; max-width: 760px; }
.ai-steps li { counter-increment: s; position: relative; padding-inline-start: 48px; min-height: 34px; padding-top: 5px; font-size: 17px; line-height: 1.5; }
.ai-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 15px/34px var(--body); text-align: center; }

.ai-others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-others .chip { text-decoration: none; }
.ai-others .chip:hover { color: var(--ink); }

.ai-final { margin-block: 104px 120px; border-radius: 32px; background: var(--hero); color: var(--on-hero); padding: 64px 48px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.ai-final h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; }
.ai-final p { color: var(--on-hero-muted); font-size: 18px; }
.ai-final .btn { background: #fff; color: #0E1116; }
@media (max-width: 600px) { .ai-final { padding: 48px 24px; } .ai section.block { padding-block: 72px 0; } }

/* hub grid */
.ai-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.ai-hub > a, .ai-hub > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.ai-hub a:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.ai-hub-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ai-hub-ic svg { width: 22px; height: 22px; }
.ai-hub b { font: 700 22px/1.2 var(--display); letter-spacing: -.015em; }
.ai-hub span { color: var(--ink-muted); }
.ai-hub em { font-style: normal; font-weight: 600; color: var(--accent); }
@media (max-width: 900px) { .ai-hub { grid-template-columns: 1fr; } }
