/* ══════════════════════════════════════════════════════════════════════════
   Watily — AI Visibility (AEO/GEO) landing.
   Loaded only on the ai-visibility route. Accent: AI violet, on the same
   black-structural + orange-CTA + flat editorial system as the other
   add-on landing pages (zatca.css, whatsapp-business.css, ...).
   ══════════════════════════════════════════════════════════════════════════ */
.wt-av-hero, .wt-av-why, .wt-av-how, .wt-av-feat, .wt-av-audiences, .wt-av-faq {
    --av: #6D4FE0;
    --av-soft: #EFEAFB;
    --av-border: #DCD2F5;
    --av-dark: #1A1714;
    --av-cream: #FAF8F5;
    --av-line: #EFEDE8;
    --av-muted: #6E6963;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.wt-av-hero {
    position: relative; isolation: isolate; overflow: clip;
    padding-bottom: clamp(44px, 6vw, 68px);
    background:
        radial-gradient(ellipse 70% 60% at 88% 12%, rgba(109, 79, 224, 0.11) 0%, transparent 58%),
        radial-gradient(ellipse 60% 50% at 8% 82%, rgba(240, 108, 20, 0.05) 0%, transparent 55%),
        linear-gradient(180deg, var(--av-cream) 0%, #ffffff 100%);
}
.wt-av-hero__glow { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.wt-av-hero__glow--a { top: -120px; inset-inline-end: -60px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(109, 79, 224, 0.13), transparent 62%); }
.wt-av-hero__glow--b { top: 140px; inset-inline-start: -160px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(240, 108, 20, 0.07), transparent 64%); }
.wt-av-hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 56px); align-items: center; }
@media (min-width: 940px) { .wt-av-hero__grid { grid-template-columns: 1.04fr 0.96fr; } }
.wt-av-hero__content { text-align: center; }
@media (min-width: 940px) { .wt-av-hero__content { text-align: start; } }
.wt-av-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--av-line); font-size: 0.8rem; font-weight: 700; color: var(--av); }
.wt-av-hero__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--av); }
.wt-av-hero__content h1 { margin: 22px 0 0; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; color: var(--av-dark); }
.wt-av-hl { position: relative; display: inline-block; color: var(--av); }
.wt-av-hl::after { content: ""; position: absolute; inset-inline: 0; bottom: 0.08em; height: 0.32em; z-index: -1; border-radius: 4px; background: linear-gradient(90deg, #DCD2F5, #FFE4C2); }
.wt-av-hero__lead { margin: 22px auto 0; font-size: clamp(1rem, 2vw, 1.14rem); line-height: 1.8; color: #524E49; max-width: 54ch; }
@media (min-width: 940px) { .wt-av-hero__lead { margin-inline: 0; } }
.wt-av-hero__actions { margin-top: 32px; display: flex; gap: 13px; flex-wrap: wrap; align-items: center; justify-content: center; }
@media (min-width: 940px) { .wt-av-hero__actions { justify-content: flex-start; } }
.wt-av-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--wt-brand-orange, #F06C14); }
.wt-av-hero__ghost { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 13px; font-size: 1rem; font-weight: 700; color: var(--av-dark); transition: background 0.18s ease; }
.wt-av-hero__ghost:hover { background: #F0EDE8; }
.wt-av-hero__badges { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 940px) { .wt-av-hero__badges { justify-content: flex-start; } }
.wt-av-hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--av-muted); }
.wt-av-hero__badge .wt-icon { color: var(--av); }

/* ── AI answer / chat card ─────────────────────────────────────────────── */
.wt-av-hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wt-av-chat { position: relative; width: min(400px, 100%); background: #fff; border: 1px solid var(--av-line); border-radius: 20px; overflow: hidden; animation: wtAvFloat 6s ease-in-out infinite; }
@keyframes wtAvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* The badge overlaps the card's dark header, so it carries its own white disc —
   without it the dark score number sits on the dark header and is invisible. */
.wt-av-chat__score { position: absolute; top: 14px; inset-inline-end: 16px; z-index: 3; width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff; }
.wt-av-chat__ring { display: block; width: 50px; height: 50px; transform: rotate(-90deg); }
.wt-av-chat__ring-bg { fill: none; stroke: var(--av-soft); stroke-width: 3.4; }
.wt-av-chat__ring-fg { fill: none; stroke: var(--av); stroke-width: 3.4; stroke-linecap: round; }
.wt-av-chat__ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.86rem; font-weight: 900; color: var(--av-dark); font-variant-numeric: tabular-nums; }
.wt-av-chat__head { background: var(--av-dark); padding: 16px 22px; display: flex; align-items: center; gap: 9px; color: #fff; font-size: 0.86rem; font-weight: 700; }
.wt-av-chat__head-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--av); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wt-av-chat__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.wt-av-chat__msg { max-width: 90%; padding: 11px 15px; border-radius: 14px; font-size: 0.82rem; line-height: 1.7; }
.wt-av-chat__msg--user { align-self: flex-end; background: var(--av-cream); color: #3A3733; border-start-end-radius: 4px; }
.wt-av-chat__msg--ai { align-self: flex-start; background: var(--av-soft); color: #362A66; border-start-start-radius: 4px; }
.wt-av-chat__msg--ai b { color: var(--av); }
.wt-av-chat__cite { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; color: var(--av); background: #fff; border: 1px solid var(--av-border); border-radius: 999px; padding: 3px 9px; }
.wt-av-chat__foot { padding: 14px 20px 18px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--av-line); background: var(--av-cream); }
.wt-av-chat__chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 800; color: var(--av-dark); background: #fff; border: 1px solid var(--av-line); border-radius: 999px; padding: 5px 10px; }
.wt-av-sent { margin-top: 14px; width: min(400px, 100%); display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--av-soft); border: 1px solid var(--av-border); border-radius: 14px; padding: 12px 16px; font-size: 0.8rem; font-weight: 700; color: #4B3894; }
.wt-av-sent-check { color: #4B3894; font-weight: 900; }

/* ── Marquee (black) ───────────────────────────────────────────────────── */
.wt-av-marquee { margin-top: clamp(28px, 5vw, 48px); background: #0A0A0A; padding: 18px 0; overflow: hidden; }
.wt-av-marquee__track { display: flex; width: max-content; animation: wtAvMarquee 28s linear infinite; }
@keyframes wtAvMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wt-av-marquee__item { display: inline-flex; align-items: center; gap: 14px; padding: 0 24px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; color: #F0EDE8; white-space: nowrap; }
.wt-av-marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--av); }

/* ── Why / stats ───────────────────────────────────────────────────────── */
.wt-av-why { padding: clamp(48px, 7vw, 80px) 0; background: linear-gradient(180deg, #F6F3FC 0%, var(--av-cream) 100%); }
.wt-av-urgent { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #4B3894; background: var(--av-soft); border-radius: 999px; padding: 5px 14px; }
.wt-av-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 720px) { .wt-av-stats { grid-template-columns: 1fr 1fr; } }
.wt-av-stat { background: #fff; border: 1px solid var(--av-line); border-radius: 18px; padding: 22px 18px; text-align: center; }
.wt-av-stat__n { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--av-dark); font-variant-numeric: tabular-nums; }
.wt-av-stat__l { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--av-muted); line-height: 1.5; }
.wt-av-stat__ltr { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 700; color: var(--av); line-height: 1.5; }
.wt-av-hero__badge [dir="ltr"] { font-variant-numeric: tabular-nums; }

/* ── How pipeline ──────────────────────────────────────────────────────── */
.wt-av-how { padding: clamp(56px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); }
.wt-av-how .wt-section-heading { max-width: 640px; margin-inline: auto; text-align: center; }
.wt-av-how .wt-section-heading .wt-badge { justify-content: center; }
.wt-av-how__steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(14px, 2.5vw, 20px); margin-top: clamp(28px, 5vw, 44px); }
.wt-av-how__rail { position: absolute; top: 26px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, #D9D5CD 0 8px, transparent 8px 16px); z-index: 0; }
@media (max-width: 767px) { .wt-av-how__rail { display: none; } }
.wt-av-how__step { position: relative; text-align: center; padding: 0 clamp(8px, 2vw, 16px); }
.wt-av-how__dot { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--av-cream); }
.wt-av-how__dot--0 { background: #F1EFEA; color: #1A1714; }
.wt-av-how__dot--1 { background: var(--av-soft); color: var(--av); }
.wt-av-how__dot--2 { background: #FFF4E6; color: #B85C00; }
.wt-av-how__dot--3 { background: var(--av-soft); color: var(--av); }
.wt-av-how__num { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: #95908A; margin-bottom: 6px; }
.wt-av-how__step h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--av-dark); }
.wt-av-how__step p { max-width: 24ch; margin: 8px auto 0; font-size: 0.84rem; line-height: 1.7; color: var(--av-muted); }

/* ── Features (top-icon grid) ──────────────────────────────────────────── */
.wt-av-feat { padding: clamp(56px, 8vw, 88px) 0; background: #fff; border-top: 1px solid var(--av-line); }
/* Explicit column counts, not auto-fill: six cards in an auto-fill grid resolve
   to four columns on a wide container and strand the last two in a half-empty
   row. 3 × 2 and 2 × 3 always divide evenly. */
.wt-av-feat__grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
@media (min-width: 640px) { .wt-av-feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .wt-av-feat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wt-av-feat-card { background: var(--av-cream); border: 1px solid var(--av-line); border-radius: 20px; padding: 28px; transition: transform 0.25s ease, border-color 0.25s ease; }
.wt-av-feat-card:hover { transform: translateY(-5px); border-color: var(--av-border); }
.wt-av-feat-card__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--av-soft); color: var(--av); display: inline-flex; align-items: center; justify-content: center; }
.wt-av-feat-card h3 { margin: 16px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--av-dark); }
.wt-av-feat-card__short { display: block; margin-top: 5px; font-size: 0.72rem; font-weight: 800; color: var(--av); }
.wt-av-feat-card p { margin: 11px 0 0; font-size: 0.88rem; color: var(--av-muted); line-height: 1.8; }

/* ── Audiences (two paths) ─────────────────────────────────────────────── */
.wt-av-audiences { padding: clamp(48px, 7vw, 80px) 0; }
.wt-av-audiences__grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(20px, 3vw, 32px); }
@media (min-width: 820px) { .wt-av-audiences__grid { grid-template-columns: 1fr 1fr; } }
.wt-av-audience { background: #fff; border: 1px solid var(--av-line); border-radius: 22px; padding: 32px; }
.wt-av-audience--now { border: 2px solid var(--av); }
.wt-av-audience__top { display: flex; align-items: center; justify-content: space-between; }
.wt-av-audience__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--av-soft); color: var(--av); display: inline-flex; align-items: center; justify-content: center; }
.wt-av-audience__tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; background: #F1EFEA; color: #3A3733; border-radius: 999px; padding: 5px 12px; }
.wt-av-audience--now .wt-av-audience__tag { background: var(--av-soft); color: var(--av); }
.wt-av-audience h3 { margin: 18px 0 0; font-size: 1.2rem; font-weight: 800; color: var(--av-dark); }
.wt-av-audience p { margin: 10px 0 0; font-size: 0.9rem; color: var(--av-muted); line-height: 1.8; }
.wt-av-waiver { margin-top: 16px; display: flex; align-items: flex-start; gap: 14px; background: #F0FDF4; border: 1px solid #C6EBD4; border-radius: 18px; padding: 18px 24px; }
.wt-av-waiver__icon { flex: none; width: 34px; height: 34px; border-radius: 11px; background: #C6EBD4; color: #0A6831; display: inline-flex; align-items: center; justify-content: center; }
.wt-av-waiver span { font-size: 0.9rem; color: #0A6831; line-height: 1.8; }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.wt-av-faq { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 8vw, 88px); }
.wt-av-faq__list { max-width: 900px; margin: clamp(24px, 4vw, 40px) auto 0; display: flex; flex-direction: column; gap: 10px; }
.wt-av-faq__item { background: #fff; border: 1px solid var(--av-line); border-radius: 16px; overflow: hidden; transition: border-color 0.2s ease; }
.wt-av-faq__item[open] { border-color: var(--av-border); }
.wt-av-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; font-size: 0.98rem; font-weight: 700; line-height: 1.55; color: var(--av-dark); list-style: none; }
.wt-av-faq__item summary::-webkit-details-marker { display: none; }
.wt-av-faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #F6F4F0; color: #524E49; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 700; line-height: 1; transition: background 0.2s ease, color 0.2s ease; }
.wt-av-faq__item[open] summary::after { content: "\2212"; background: var(--av); color: #fff; }
.wt-av-faq__item p { margin: 0; padding: 2px 24px 21px; font-size: 0.9rem; line-height: 1.9; color: #524E49; }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.wt-av-cta .wt-av-cta__card { display: flex; flex-direction: column; align-items: center; text-align: center; grid-template-columns: none; background: var(--wt-dark, #1A1714); border-radius: 28px; padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.wt-av-cta__card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% -10%, rgba(109, 79, 224, 0.30) 0%, transparent 60%); pointer-events: none; }
.wt-av-cta__card > * { position: relative; z-index: 1; }
.wt-av-cta__mark { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; color: var(--av); }
.wt-av-cta .wt-av-cta__card h2 { margin: 22px auto 0; max-width: 24ch; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.wt-av-cta .wt-av-cta__card p { margin: 16px auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.66); font-size: 1.05rem; line-height: 1.8; }
.wt-av-cta__actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wt-av-cta__ghost { display: inline-flex; align-items: center; padding: 15px 28px; border-radius: 13px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 700; transition: background 0.18s ease; }
.wt-av-cta__ghost:hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 600px) {
    .wt-av-cta__actions { width: 100%; flex-direction: column; }
    .wt-av-cta__actions .wt-btn, .wt-av-cta__ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .wt-av-chat, .wt-av-marquee__track { animation: none !important; }
}
