/* /ai-real-estate-video-generator. Builds on landing.css tokens (--ap-blue, --ap-ink,
   --ap-mute, --ap-fill) and v4-home.css sections. Classes are prefixed aig-. */

.aig-page { --aig-hero: #458EFF; --aig-feature: #9cc2ff; --aig-filler: #d6d9e0; --aig-ending: #1d1d1f; }

/* Hero: copy left, the reel in a phone right */
.aig-hero { padding: 64px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--ap-fill) 100%); }
.aig-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.aig-hero-copy { min-width: 0; }
.aig-crumbs { font-size: 13px; color: var(--ap-mute); display: flex; gap: 8px; margin: 0 0 18px; }
.aig-crumbs a { color: var(--ap-mute) !important; text-decoration: none; }
.aig-crumbs a:hover { color: var(--ap-blue) !important; }
.aig-hero h1 {
    font-size: 60px; line-height: 1.03; letter-spacing: -0.045em; font-weight: 700;
    color: var(--ap-ink); margin: 0 0 20px; text-wrap: balance;
}
.aig-h1-accent { color: var(--ap-blue); }
.aig-lede { font-size: 19px; line-height: 1.5; color: var(--ap-mute); margin: 0 0 28px; max-width: 600px; }
.aig-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.aig-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.aig-trust li { font-size: 14px; color: var(--ap-ink); display: flex; align-items: center; gap: 8px; }
.aig-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-blue); }

.aig-phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.aig-phone {
    width: min(340px, 100%); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px;
    background: #111; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .45), inset 0 0 0 1.5px #333;
}
.aig-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0f172a; }
.aig-phone-screen img, .aig-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.aig-phone-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.aig-tag {
    font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 980px;
    background: #fff; color: var(--ap-mute); border: 1px solid var(--ap-line);
}
.aig-tag-dark { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }

/* Steps */
.aig-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aig-step { background: #fff; border-radius: 28px; padding: 28px 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.aig-step h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 8px; font-weight: 700; color: var(--ap-ink); }
.aig-step p { font-size: 15px; line-height: 1.5; color: var(--ap-mute); margin: 0 0 20px; }
.aig-step-media { margin-top: auto; position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--ap-fill); }
.aig-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; background: #fff; }
.aig-step-grid img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.aig-step-move img, .aig-step-move video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.aig-step-chip {
    position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 12px; font-weight: 600; color: #fff;
    background: rgba(17, 17, 17, .72); padding: 5px 10px; border-radius: 980px; backdrop-filter: blur(4px);
}
.aig-step-looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; }
.aig-step-looks img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; border-radius: 10px; display: block; }

/* Beat timeline */
.aig-beat { background: var(--ap-fill); border-radius: 28px; padding: 28px; overflow-x: auto; }
.aig-beat-shots { display: flex; gap: 4px; min-width: 760px; }
.aig-shot { flex-basis: 0; position: relative; height: 150px; border-radius: 10px; overflow: hidden; background: #ddd; }
.aig-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aig-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--aig-role); }
.aig-shot-room {
    position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 600; color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap;
}
.aig-shot-beats {
    position: absolute; right: 6px; bottom: 10px; font-size: 11px; font-weight: 700; color: var(--ap-ink);
    background: #fff; border-radius: 980px; min-width: 20px; height: 20px; display: grid; place-items: center;
    font-variant-numeric: tabular-nums;
}
.aig-role-hero { --aig-role: var(--aig-hero); }
.aig-role-feature { --aig-role: var(--aig-feature); }
.aig-role-filler { --aig-role: var(--aig-filler); }
.aig-role-ending { --aig-role: var(--aig-ending); }
.aig-beat-ticks { display: grid; grid-template-columns: repeat(32, 1fr); gap: 4px; margin-top: 12px; min-width: 760px; }
.aig-beat-ticks span { height: 10px; border-radius: 2px; background: #c9ccd3; }
.aig-beat-ticks span.is-bar { height: 16px; background: var(--ap-ink); }
.aig-beat-scale {
    display: flex; justify-content: space-between; margin-top: 8px; min-width: 760px;
    font-size: 12px; color: var(--ap-mute); font-variant-numeric: tabular-nums;
}
.aig-roles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aig-roles li { font-size: 15px; line-height: 1.5; color: var(--ap-mute); display: flex; gap: 10px; align-items: baseline; }
.aig-roles strong { color: var(--ap-ink); margin-right: 4px; }
.aig-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--aig-role); transform: translateY(1px); }

/* Looks */
.aig-looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.aig-look { margin: 0; min-width: 0; }
.aig-look img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; display: block; }
.aig-look figcaption { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.aig-look strong { font-size: 15px; color: var(--ap-ink); }
.aig-look span { font-size: 13px; line-height: 1.4; color: var(--ap-mute); }
.aig-looks-note { text-align: center; font-size: 15px; color: var(--ap-mute); margin: 32px auto 0; max-width: 640px; }
.aig-looks-note strong { color: var(--ap-ink); }

/* Effects */
.aig-fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aig-fx { margin: 0; min-width: 0; }
.aig-fx .g-video-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--ap-fill); }
.aig-fx .g-video-slot img, .aig-fx .g-video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aig-fx figcaption { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.aig-fx strong { font-size: 15px; color: var(--ap-ink); }
.aig-fx span { font-size: 13px; color: var(--ap-mute); }

/* Table */
.aig-table-wrap { overflow-x: auto; background: #fff; border-radius: 24px; }
.aig-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.aig-table th, .aig-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--ap-line); vertical-align: top; }
.aig-table thead th { font-size: 14px; font-weight: 600; color: var(--ap-mute); }
.aig-table tbody th { font-weight: 600; color: var(--ap-ink); width: 26%; }
.aig-table td { color: var(--ap-mute); }
.aig-table .aig-col-ap { background: rgba(69, 142, 255, .07); color: var(--ap-ink); font-weight: 500; }
.aig-table thead .aig-col-ap { color: var(--ap-blue); }
.aig-table tbody tr:last-child th, .aig-table tbody tr:last-child td { border-bottom: 0; }
.aig-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* FAQ */
.aig-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.aig-faq-head h2 { font-size: 40px; line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 12px; color: var(--ap-ink); }
.aig-faq-head p { font-size: 17px; color: var(--ap-mute); margin: 0; }

/* Keep reading */
.aig-more { padding: 72px 0 24px; }
.aig-more h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 20px; color: var(--ap-ink); }
.aig-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aig-more-card {
    display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 16px;
    background: var(--ap-fill); color: var(--ap-ink) !important; text-decoration: none; font-weight: 500; font-size: 15px;
}
.aig-more-card:hover { color: var(--ap-blue) !important; }


@media (max-width: 980px) {
    .aig-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .aig-hero h1 { font-size: 46px; }
    .aig-steps { grid-template-columns: 1fr; }
    .aig-looks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aig-fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aig-faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .aig-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .aig-hero { padding: 40px 0 64px; }
    .aig-hero h1 { font-size: 38px; }
    .aig-lede { font-size: 17px; }
    .aig-phone { width: min(280px, 100%); }
    .aig-beat { padding: 18px; border-radius: 20px; }
    .aig-roles { grid-template-columns: 1fr; }
    .aig-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aig-more-grid { grid-template-columns: 1fr; }
}

/* Ending card */
.aig-end { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.aig-end-copy { min-width: 0; }
.aig-end-copy h2 { font-size: 44px; line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 14px; color: var(--ap-ink); text-wrap: balance; }
.aig-end-copy p { font-size: 17px; line-height: 1.55; color: var(--ap-mute); margin: 0 0 20px; max-width: 520px; }
.aig-end-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.aig-end-list li { font-size: 15px; color: var(--ap-ink); display: flex; align-items: center; gap: 10px; }
.aig-end-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-blue); flex: none; }
.aig-end-media { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.aig-end-media img { width: min(300px, 100%); height: auto; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45); }
.aig-end-media figcaption { font-size: 12px; color: var(--ap-mute); }
@media (max-width: 980px) {
    .aig-end { grid-template-columns: 1fr; gap: 36px; }
    .aig-end-copy h2 { font-size: 36px; }
}
