/* =========================================================================
   kg-ai-home.css — Homepage "Free AI Skin Analysis" teaser (#kg-ai-analysis).
   Home page only (linked from includes/header.php). Namespaced "aih-".
   Dark forest palette shared with the rest of the site.
   ========================================================================= */
.aih {
    position: relative; overflow: hidden;
    padding: clamp(72px, 9vw, 120px) 0;
    background: radial-gradient(120% 90% at 20% 0%, #163832 0%, #0B2B26 50%, #051F20 100%);
    color: #C9E4D2;
}
.aih::before {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background: radial-gradient(#8EB69B 1.2px, transparent 1.2px) 0 0 / 32px 32px;
}
.aih *, .aih *::before, .aih *::after { box-sizing: border-box; }
.aih-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.aih-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: #8EB69B; }
.aih-eyebrow::before { content: ""; width: 24px; height: 1.5px; background: #8EB69B; }
.aih-title { margin: 14px 0 0; font-family: var(--kg-heading-font, 'Cormorant Garamond', Georgia, serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; color: #fff; }
.aih-title em { font-style: italic; font-weight: 400; color: #8EB69B; }
.aih-lede { margin: 20px 0 0; max-width: 580px; font-size: clamp(15px, 1.4vw, 17px); font-weight: 300; line-height: 1.8; color: rgba(201,228,210,.9); }

.aih-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.aih-card { padding: 20px 20px 22px; border-radius: 16px; border: 1px solid rgba(142,182,155,.3);
    background: linear-gradient(160deg, rgba(35,83,71,.55) 0%, rgba(11,43,38,.9) 100%);
    box-shadow: 0 18px 36px -14px rgba(0,0,0,.5); transition: transform .3s, border-color .3s; }
.aih-card:hover { transform: translateY(-4px); border-color: rgba(142,182,155,.6); }
.aih-card-n { display: block; margin-bottom: 12px; font-family: var(--kg-heading-font, 'Cormorant Garamond', Georgia, serif); font-size: 30px; line-height: 1; font-weight: 300; color: #8EB69B; }
.aih-card h3 { margin: 0 0 6px; font-family: var(--kg-heading-font, 'Cormorant Garamond', Georgia, serif); font-size: 21px; font-weight: 500; line-height: 1.2; color: #fff; }
.aih-card p { margin: 0; font-size: 13px; font-weight: 300; line-height: 1.65; color: rgba(201,228,210,.82); }

.aih-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.aih-chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(142,182,155,.3); background: rgba(142,182,155,.1); font-size: 11.5px; letter-spacing: .06em; color: #C9E4D2; }

.aih-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.aih-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: #8EB69B; color: #051F20; border: 1px solid #8EB69B; transition: background .2s, color .2s; }
.aih-btn:hover { background: #C9E4D2; border-color: #C9E4D2; color: #051F20; }
.aih-btn svg { width: 1.1em; height: 1.1em; }
.aih-btn-ghost { background: transparent; color: #C9E4D2; border-color: rgba(142,182,155,.45); }
.aih-btn-ghost:hover { background: rgba(142,182,155,.16); color: #fff; border-color: #8EB69B; }
.aih-note { margin: 22px 0 0; font-size: 11.5px; font-weight: 300; color: rgba(201,228,210,.65); }

.aih-media { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.aih-media::before { content: ""; position: absolute; inset: -14px; border-radius: 28px; border: 1px solid rgba(142,182,155,.3); transform: rotate(-1.5deg); }
.aih-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; border: 1px solid rgba(142,182,155,.35); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); background: #0B2B26; }
.aih-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aih-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,31,32,.15) 0%, rgba(5,31,32,.55) 100%); pointer-events: none; }
.aih-sweep { position: absolute; inset: 0; overflow: hidden; z-index: 2; pointer-events: none; }
.aih-sweep span { display: block; width: 100%; height: 120px; background: linear-gradient(to bottom, transparent, rgba(142,182,155,.4), transparent); animation: aihSweep 7s ease-in-out infinite; }
.aih-tag { position: absolute; z-index: 3; padding: 5px 12px; border-radius: 999px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #C9E4D2; background: rgba(5,31,32,.8); border: 1px solid rgba(142,182,155,.4); }
.aih-tag-t { top: 22px; left: 22px; }
.aih-tag-b { bottom: 22px; right: 22px; }
@keyframes aihSweep { 0% { transform: translateY(-100%); opacity: 0; } 30%, 70% { opacity: .55; } 100% { transform: translateY(560%); opacity: 0; } }

@media (max-width: 1000px) {
    .aih-wrap { grid-template-columns: 1fr; }
    .aih-media { max-width: 380px; order: -1; }
}
@media (max-width: 720px) {
    .aih-cards { grid-template-columns: 1fr; }
    .aih-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .aih-sweep span { animation: none; } .aih-card { transition: none; } }

.aih-index { display: inline-flex; align-items: center; gap: 14px; }
.aih-num { font-family: var(--kg-body-font, 'Inter', sans-serif); font-size: 13px; letter-spacing: .2em; font-weight: 600; color: #8EB69B; }
.aih-vline { width: 1px; height: 18px; background: rgba(142,182,155,.55); }
.aih-index .aih-eyebrow::before { display: none; }
