/* ai.css: the small AI Receptionist page (/ai), the landing page for the
 * Facebook ad. Light hero with the homepage glow, three steps, the price
 * card and the "book a call" form (sent by nyra-forms.js). */

.ai-page {
    background: var(--white);
    color: var(--text);
}
.ai-wrap {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ── Hero ── */
.ai-hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-30) 0 var(--space-12);
}
.ai-hero::before {
    content: '';
    position: absolute;
    inset: -50% -50% 0;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(40px);
    -webkit-mask-image: linear-gradient(var(--secondary) 55%, transparent);
    mask-image: linear-gradient(var(--secondary) 55%, transparent);
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, var(--grad-1), transparent 50%),
        radial-gradient(ellipse 80% 70% at 85% 10%, var(--grad-2), transparent 45%),
        radial-gradient(ellipse 60% 80% at 100% 50%, var(--grad-3), transparent 50%),
        radial-gradient(ellipse 70% 60% at 80% 90%, var(--grad-4), transparent 45%),
        radial-gradient(ellipse 50% 70% at 10% 60%, var(--grad-6), transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 10%, var(--grad-5), transparent 45%);
}
.ai-eyebrow {
    font-size: var(--text-size-sm);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 var(--space-3);
}
.ai-hero h1 {
    font-size: var(--text-size-7xl);
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin: 0 0 var(--space-4);
}
.ai-highlight {
    background: linear-gradient(135deg, var(--grad-2), var(--grad-3), var(--grad-7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ai-lead {
    font-size: var(--text-size-lg);
    margin: 0 0 var(--space-6);
}
.ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-3) var(--space-4);
}
.ai-call {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 290px;
}
.ai-nowrap {
    white-space: nowrap;
}
.ai-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}
.ai-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.ai-small {
    font-size: var(--text-size-md);
    color: var(--text-light);
    margin: 0;
}

/* ── How it works: a left-to-right workflow, top-to-bottom on phones ── */
.ai-flow-wrap {
    margin-bottom: var(--space-12);
}
.ai-flow-heading {
    font-size: var(--text-size-sm);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 var(--space-4);
}
.ai-flow {
    display: flex;
    align-items: stretch;
    gap: var(--space-2);
}
.ai-flow-step {
    flex: 1 1 0;
    text-align: center;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-5) var(--space-3);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.ai-flow-step--ai {
    border-color: var(--primary);
    background: var(--primary-a05);
}
.ai-flow-step--done {
    border-color: var(--success);
    background: var(--surface-success);
}
.ai-flow-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-round);
    background: var(--primary-a10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-flow-step--ai .ai-flow-icon {
    background: var(--primary);
    color: var(--white);
}
.ai-flow-step--done .ai-flow-icon {
    background: var(--success);
    color: var(--white);
}
.ai-flow-icon svg {
    width: 24px;
    height: 24px;
}
.ai-flow-num {
    font-size: var(--text-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0;
}
.ai-flow-title {
    font-weight: 700;
    color: var(--secondary);
    margin: var(--space-1) 0;
}
.ai-flow-text {
    font-size: var(--text-size-md);
    margin: 0;
}
.ai-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    color: var(--primary-light);
}
.ai-arrow svg {
    width: 22px;
    height: 22px;
}

/* ── Add-ons ── */
.ai-addons,
.ai-for {
    margin-bottom: var(--space-12);
}

/* ── Great for: a strip of business photos that scrolls on its own,
 * like "Technologies We Support" on the homepage. The list is there
 * twice so the loop has no gap; the copy is hidden from screen readers. */
.ai-fit-strip {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: var(--space-2) 0 var(--space-4);
}
.ai-fit-strip::before,
.ai-fit-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: var(--z-above);
    pointer-events: none;
}
.ai-fit-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), transparent);
}
.ai-fit-strip::after {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--white));
}
.ai-fit-track {
    display: flex;
    flex: none;
    gap: var(--space-4);
    margin: 0;
    padding: 0 var(--space-4) 0 0;
    list-style: none;
    animation: ai-fit-scroll 90s linear infinite;
}
.ai-fit-strip:hover .ai-fit-track {
    animation-play-state: paused;
}
@keyframes ai-fit-scroll {
    to { transform: translateX(-100%); }
}
.ai-fit-card {
    flex: none;
    width: 176px;
    white-space: nowrap;
}
.ai-fit-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.ai-fit-name {
    display: block;
    margin-top: var(--space-2);
    font-weight: 700;
    color: var(--secondary);
}
.ai-fit-group {
    display: block;
    font-size: var(--text-size-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}
.ai-fit-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}
.ai-fit-open:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: var(--space-1);
    border-radius: var(--radius-md);
}

/* The photo viewer that opens when a card is tapped (ai-fit.js). */
.ai-fit-view {
    width: min(92vw, 720px);
    max-height: 92vh;
    margin: auto;
    padding: var(--space-4);
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: visible;
}
.ai-fit-view::backdrop {
    background: rgba(var(--secondary-rgb), 0.8);
}
.ai-fit-view figure {
    margin: 0;
}
.ai-fit-view img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.ai-fit-view figcaption {
    padding: var(--space-3) var(--space-1) 0;
}
.ai-fit-view .ai-fit-name {
    margin-top: 0;
    font-size: var(--text-size-lg);
}
.ai-fit-count {
    position: absolute;
    right: var(--space-5);
    bottom: var(--space-4);
    margin: 0;
    font-size: var(--text-size-sm);
    color: var(--text-light);
}
.ai-fit-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-round);
    background: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
/* Hover only on devices with a mouse: on phones a tapped arrow would
 * otherwise stay highlighted after you tap the other one. */
@media (hover: hover) {
    .ai-fit-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
    }
}
.ai-fit-view:focus {
    outline: none;
}
.ai-fit-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.ai-fit-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ai-fit-prev,
.ai-fit-next {
    top: 40%;
}
.ai-fit-prev {
    left: calc(-1 * var(--space-5));
}
.ai-fit-next {
    right: calc(-1 * var(--space-5));
}
.ai-fit-close {
    top: calc(-1 * var(--space-4));
    right: calc(-1 * var(--space-4));
}

.ai-fit-note {
    margin: 0 0 var(--space-2);
}
@media (prefers-reduced-motion: reduce) {
    .ai-fit-strip {
        overflow-x: auto;
    }
    .ai-fit-track {
        animation: none;
    }
    .ai-fit-track[aria-hidden="true"] {
        display: none;
    }
}

/* ── Price ── */
.ai-price {
    margin-bottom: var(--space-12);
}
.ai-price-card {
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
}
.ai-deal {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.ai-off {
    flex: none;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: linear-gradient(100deg, var(--grad-2), var(--grad-3) 55%, var(--grad-7));
    color: var(--white);
    font-size: var(--text-size-2xl);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}
.ai-offer {
    font-size: var(--text-size-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin: 0 0 var(--space-1);
}
.ai-amount {
    font-size: var(--text-size-6xl);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin: 0;
}
.ai-amount span {
    font-size: var(--text-size-lg);
    font-weight: 600;
    color: var(--text);
}
.ai-was {
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
}
.ai-amount + .ai-monthly {
    margin-top: var(--space-3);
}
.ai-monthly {
    margin: 0;
    color: var(--text-dark);
}
.ai-list {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-5);
}
.ai-list li {
    margin-bottom: var(--space-2);
}

/* ── Book a call ── */
.ai-book {
    padding-bottom: var(--space-20);
}
.ai-book h2 {
    font-size: var(--text-size-3xl);
    color: var(--secondary);
    margin: 0 0 var(--space-2);
}
.ai-form {
    margin-top: var(--space-6);
}
.ai-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.ai-form label {
    display: block;
    font-size: var(--text-size-md);
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: var(--space-4);
}
.ai-form input,
.ai-form textarea {
    display: block;
    width: 100%;
    margin-top: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 400;
    color: var(--text-heading);
}
.ai-form input:focus,
.ai-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.ai-form .ai-consent {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    font-size: var(--text-size-sm);
    font-weight: 400;
    color: var(--text);
}
.ai-form .ai-consent input {
    display: inline-block;
    width: auto;
    margin: var(--space-1) 0 0;
    accent-color: var(--primary);
}
.ai-consent a {
    color: var(--primary);
}
.ai-submit {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .ai-hero h1 {
        font-size: var(--text-size-5xl);
    }
    .ai-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .ai-actions,
    .ai-call {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }
    .ai-actions .btn,
    .ai-btn-ghost {
        justify-content: center;
        text-align: center;
    }
    .ai-call .ai-small {
        text-align: center;
    }
    .ai-amount span {
        display: block;
        margin-top: var(--space-1);
    }
    .ai-fit-card {
        width: 160px;
    }
    .ai-fit-view {
        padding: var(--space-3);
    }
    .ai-fit-prev {
        left: var(--space-2);
    }
    .ai-fit-next {
        right: var(--space-2);
    }
    .ai-fit-close {
        top: var(--space-2);
        right: var(--space-2);
    }
    .ai-deal {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .ai-flow {
        flex-direction: column;
    }
    .ai-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }
}
