/* ==========================================================================
   Home: "Gateway AI" (24 Nov 2026, v2: compact + friendly)
   Markup: resources/views/user/partials/_home_ai.blade.php
   One navy "AI workspace": tab rail + live CSS-only preview of the selected tool.
   Colours only from gateway-theme.css variables. Gold text only on navy (gold-dark on light). No grey text.
   ========================================================================== */
.gw-ai {
    scroll-margin-top: 84px;
    background: var(--gw-ice);
    padding: 52px 0 56px;
    font-family: var(--gw-font);
    color: var(--gw-navy);
}
.gw-ai-head { max-width: 720px; margin-bottom: 22px; }
.gw-ai-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.gw-ai-title { margin: 0 0 8px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--gw-navy); }
.gw-ai-title span { color: var(--gw-gold-dark); -webkit-text-fill-color: var(--gw-gold-dark); }
.gw-ai-sub { margin: 0; font-size: 16px; line-height: 1.55; color: var(--gw-slate); }

/* ---- Workspace ---- */
.gw-ai-app {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
    background: radial-gradient(circle at 100% 0%, rgba(var(--gw-gold-rgb), .22), transparent 50%), linear-gradient(160deg, var(--gw-navy-light), var(--gw-navy));
    border: 1px solid rgba(var(--gw-gold-rgb), .35);
    box-shadow: 0 22px 46px rgba(var(--gw-navy-rgb), .22);
}

/* ---- Rail ---- */
.gw-ai-rail { display: flex; flex-direction: column; gap: 8px; }
.gw-ai-tab {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    color: var(--gw-white);
    font-family: var(--gw-font);
    text-align: left;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.gw-ai-tab:hover { background: rgba(255, 255, 255, .12); transform: translateX(2px); }
.gw-ai-tab:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 2px; }
.gw-ai-ico {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gw-gold-rgb), .18);
    color: var(--gw-gold);
    transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.gw-ai-ico svg { width: 21px; height: 21px; }
.gw-ai-tab:hover .gw-ai-ico { transform: rotate(-8deg) scale(1.08); }
.gw-ai-tab-txt { display: flex; flex-direction: column; min-width: 0; }
.gw-ai-tab-txt b { font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.gw-ai-tab-txt small { margin-top: 1px; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: inherit; opacity: .92; }
.gw-ai-tab.is-active { background: var(--gw-white); color: var(--gw-navy); transform: none; box-shadow: 0 10px 22px rgba(0, 0, 0, .22); }
.gw-ai-tab.is-active .gw-ai-ico { background: var(--gw-gold); color: var(--gw-navy); }
/* auto-rotate progress: a thin gold bar along the bottom of the active tab */
.gw-ai-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gw-gold); transform: scaleX(0); transform-origin: left; }
.gw-ai-app.is-playing .gw-ai-tab.is-active::after { animation: gwAiProg 7s linear forwards; }
.gw-ai-app:not(.is-visible) .gw-ai-tab::after,
.gw-ai-app:hover .gw-ai-tab::after,
.gw-ai-app:focus-within .gw-ai-tab::after { animation-play-state: paused; }
@keyframes gwAiProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Stage ---- */
.gw-ai-stage { position: relative; min-width: 0; padding: 16px 18px 16px; border-radius: 20px; background: var(--gw-white); }
.gw-ai-illu {
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 3px 10px 2px;
    border-radius: 999px;
    background: rgba(var(--gw-gold-rgb), .25);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gw-navy);
}
.gw-ai-panel { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.gw-ai-panel[hidden] { display: none; }
.gw-ai-view { flex: 1; min-height: 196px; padding-top: 22px; }
.gw-ai-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px dashed rgba(var(--gw-navy-rgb), .18); }
.gw-ai-cap h3 { margin: 0 0 2px; font-size: 19px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-cap p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--gw-slate); max-width: 52ch; }
.gw-ai-cta {
    flex: 0 0 auto;
    padding: 10px 20px 9px;
    border-radius: 999px;
    background: var(--gw-navy);
    font-size: 14px;
    font-weight: 700;
    color: var(--gw-gold);
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}
.gw-ai-cta span { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.gw-ai-cta:hover { color: var(--gw-gold); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(var(--gw-navy-rgb), .25); }
.gw-ai-cta:hover span { transform: translateX(5px); }
.gw-ai-cta:focus-visible { outline: 3px solid var(--gw-navy); outline-offset: 3px; }

/* ---- Shared mock bits ---- */
@keyframes gwAiRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gwAiBlink { 50% { opacity: 0; } }
@keyframes gwAiFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gwAiPop { from { transform: scale(0); } to { transform: scale(1); } }
.gw-ai-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--gw-success); }
.gw-ai-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--gw-success); animation: gwAiBlink 1.2s steps(1) infinite; }

/* 1. SOP */
.gw-ai-view--sop { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.gw-ai-sop-form { display: grid; gap: 8px; align-content: start; }
.gw-ai-field { display: block; padding: 7px 11px 6px; border-radius: 12px; background: var(--gw-ice); font-size: 13px; font-weight: 600; color: var(--gw-navy); animation: gwAiRise .5s ease both; }
.gw-ai-field:nth-child(2) { animation-delay: .1s; }
.gw-ai-field:nth-child(3) { animation-delay: .2s; }
.gw-ai-field small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gw-gold-dark); }
.gw-ai-btn-mock { display: block; padding: 8px 12px 7px; border-radius: 999px; background: var(--gw-gold); text-align: center; font-size: 13px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-doc { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(var(--gw-navy-rgb), .14); box-shadow: 0 8px 20px rgba(var(--gw-navy-rgb), .08); }
.gw-ai-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gw-ai-doc-head b { font-size: 13px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-lines { display: grid; gap: 7px; }
.gw-ai-lines b { display: block; position: relative; height: 7px; width: var(--w, 100%); border-radius: 4px; background: rgba(var(--gw-navy-rgb), .17); transform-origin: left; animation: gwAiFill .9s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * .22s + .15s); }
.gw-ai-lines b.gw-ai-gap { height: 4px; background: none; animation: none; }
.gw-ai-lines b u { position: absolute; right: -5px; top: -3px; width: 2px; height: 13px; background: var(--gw-gold-dark); animation: gwAiBlink 1s steps(1) infinite; }

/* 2. UniFinder */
.gw-ai-searchbar { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1.5px solid rgba(var(--gw-navy-rgb), .2); font-size: 13.5px; font-weight: 600; color: var(--gw-navy); }
.gw-ai-searchbar svg { flex: 0 0 auto; }
.gw-ai-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--gw-gold-dark); animation: gwAiTyping 1.6s steps(26, end) .2s forwards; }
@keyframes gwAiTyping { to { width: 26ch; border-color: transparent; } }
.gw-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gw-ai-chips em { font-style: normal; padding: 3px 11px 2px; border-radius: 999px; background: rgba(var(--gw-gold-rgb), .26); font-size: 11.5px; font-weight: 600; color: var(--gw-navy); }
.gw-ai-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.gw-ai-results li { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 14px; background: var(--gw-ice); animation: gwAiRise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d) * .14s + 1s); }
.gw-ai-rk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-navy); font-size: 11.5px; font-weight: 700; color: var(--gw-gold); }
.gw-ai-results li > div { flex: 1; min-width: 0; }
.gw-ai-results b { display: block; font-size: 13.5px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-results small { display: block; font-size: 11.5px; color: var(--gw-slate); }
.gw-ai-match { flex: 0 0 96px; }
.gw-ai-match i { display: block; height: 6px; border-radius: 4px; background: rgba(var(--gw-navy-rgb), .12); position: relative; overflow: hidden; }
.gw-ai-match i::after { content: ""; position: absolute; inset: 0; width: var(--m); border-radius: 4px; background: var(--gw-gold); transform-origin: left; animation: gwAiFill .8s ease both; animation-delay: calc(var(--d, 0) * .14s + 1.3s); }
.gw-ai-match em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gw-navy); text-align: right; }

/* 3. Interview */
.gw-ai-view--interview { display: grid; gap: 10px; align-content: start; }
.gw-ai-q { padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: var(--gw-navy); color: var(--gw-white); animation: gwAiRise .5s ease both; }
.gw-ai-q small { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gw-gold); }
.gw-ai-q p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.gw-ai-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 36px; }
.gw-ai-wave i { width: 4px; height: 100%; border-radius: 3px; background: var(--gw-gold-dark); transform: scaleY(.2); animation: gwAiWave 1.2s ease-in-out infinite; }
.gw-ai-wave i:nth-child(2n) { animation-delay: -.3s; }
.gw-ai-wave i:nth-child(3n) { animation-delay: -.6s; }
.gw-ai-wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes gwAiWave { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.gw-ai-rec { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--gw-navy); }
.gw-ai-rec b { font-variant-numeric: tabular-nums; }
.gw-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gw-danger); animation: gwAiBlink 1.2s steps(1) infinite; }
.gw-ai-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gw-ai-meters span { display: block; padding: 7px 10px 8px; border-radius: 12px; background: var(--gw-ice); }
.gw-ai-meters small { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-meters i { display: block; height: 6px; border-radius: 4px; background: rgba(var(--gw-navy-rgb), .12); position: relative; overflow: hidden; }
.gw-ai-meters i::after { content: ""; position: absolute; inset: 0; width: var(--m); border-radius: 4px; background: var(--gw-gold); transform-origin: left; animation: gwAiFill .9s ease .4s both; }

/* 4. Documents */
.gw-ai-view--docs { display: grid; gap: 10px; align-content: start; }
.gw-ai-drop { padding: 11px 14px; border-radius: 16px; border: 2px dashed rgba(var(--gw-gold-dark-rgb), .55); text-align: center; background: rgba(var(--gw-gold-rgb), .1); }
.gw-ai-drop b { display: block; font-size: 14px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-drop small { display: block; margin-bottom: 7px; font-size: 11.5px; color: var(--gw-slate); }
.gw-ai-bar { display: block; height: 6px; border-radius: 4px; background: rgba(var(--gw-navy-rgb), .12); position: relative; overflow: hidden; }
.gw-ai-bar i { position: absolute; inset: 0; border-radius: 4px; background: var(--gw-navy); transform-origin: left; animation: gwAiFill 2.6s ease .2s both; }
.gw-ai-sorted { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gw-ai-sorted li { display: flex; align-items: center; gap: 9px; padding: 6px 11px; border-radius: 12px; background: var(--gw-ice); font-size: 12.5px; color: var(--gw-navy); animation: gwAiRise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d) * .3s + .5s); }
.gw-ai-file { flex: 0 0 38%; font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(var(--gw-navy-rgb), .35); }
.gw-ai-arrow { color: var(--gw-gold-dark); font-weight: 700; }
.gw-ai-sorted em { flex: 1; font-style: normal; font-weight: 700; }
.gw-ai-sorted b { width: 19px; height: 19px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-success); color: var(--gw-white); font-size: 11px; line-height: 1; animation: gwAiPop .4s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d) * .3s + .9s); }

/* ---- Guarantee Admit strip ---- */
.gw-ai-ga { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 20px; background: var(--gw-white); border: 1px solid rgba(var(--gw-navy-rgb), .12); box-shadow: 0 8px 20px rgba(var(--gw-navy-rgb), .06); }
.gw-ai-ga-badge { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-navy); color: var(--gw-gold); font-size: 20px; font-weight: 800; }
.gw-ai-ga-text { flex: 1; min-width: 0; }
.gw-ai-ga-text strong { display: block; font-size: 16px; font-weight: 700; color: var(--gw-navy); }
.gw-ai-ga-text span { display: block; font-size: 14px; line-height: 1.4; color: var(--gw-slate); }
.gw-ai-ga-btn { flex: 0 0 auto; padding: 10px 20px 9px; border-radius: 999px; background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow); font-size: 14px; font-weight: 700; color: var(--gw-navy); text-decoration: none; white-space: nowrap; }
.gw-ai-ga-btn span { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.gw-ai-ga-btn:hover { color: var(--gw-navy); text-decoration: none; }
.gw-ai-ga-btn:hover span { transform: translateX(5px); }
.gw-ai-ga-btn:focus-visible { outline: 3px solid var(--gw-navy); outline-offset: 3px; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .gw-ai { padding: 44px 0 48px; }
    .gw-ai-app { grid-template-columns: 1fr; gap: 12px; padding: 12px; border-radius: 24px; }
    .gw-ai-rail { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .gw-ai-rail::-webkit-scrollbar { display: none; }
    .gw-ai-tab { flex: 0 0 auto; padding: 9px 14px 9px 10px; border-radius: 999px; }
    .gw-ai-tab:hover { transform: none; }
    .gw-ai-tab-txt small { display: none; }
    .gw-ai-ico { width: 32px; height: 32px; border-radius: 50%; }
    .gw-ai-ico svg { width: 18px; height: 18px; }
    .gw-ai-tab::after { left: 16px; right: 16px; }
}
@media (max-width: 767.98px) {
    .gw-ai { padding: 36px 0 40px; }
    .gw-ai-head { margin-bottom: 16px; }
    .gw-ai-stage { padding: 14px 14px 14px; border-radius: 18px; }
    .gw-ai-view { min-height: 0; padding-top: 24px; }
    .gw-ai-view--sop { grid-template-columns: 1fr; gap: 10px; }
    .gw-ai-sop-form { display: flex; flex-wrap: wrap; gap: 6px; }
    .gw-ai-field { padding: 5px 11px 4px; border-radius: 999px; font-size: 12px; }
    .gw-ai-field small { display: none; }
    .gw-ai-btn-mock { display: none; }
    .gw-ai-view { padding-top: 26px; }
    .gw-ai-cap p { font-size: 14px; }
    .gw-ai-ga-text span { font-size: 13px; }
    .gw-ai-cap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .gw-ai-cta { width: 100%; text-align: center; }
    .gw-ai-match { flex-basis: 70px; }
    .gw-ai-file { flex-basis: 34%; }
    .gw-ai-ga { flex-wrap: wrap; padding: 14px; }
    .gw-ai-ga-text { flex: 1 1 calc(100% - 56px); }
    .gw-ai-ga-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-ai-tab, .gw-ai-ico, .gw-ai-cta, .gw-ai-cta span, .gw-ai-ga-btn span { transition: none; }
    .gw-ai-tab:hover, .gw-ai-tab:hover .gw-ai-ico, .gw-ai-cta:hover, .gw-ai-cta:hover span, .gw-ai-ga-btn:hover span { transform: none; }
    .gw-ai *, .gw-ai *::after { animation: none !important; }
    .gw-ai-type { width: auto; border: 0; }
    .gw-ai-wave i { transform: scaleY(.6); }
    .gw-ai-tab::after { display: none; }
}

/* AI SOP: real draft text appearing word by word */
.gw-ai-draft { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--gw-navy); }
.gw-ai-draft span { opacity: 0; animation: gwAiWord .25s ease both; animation-delay: calc(var(--i) * .075s + .3s); }
.gw-ai-caret { display: inline-block; width: 2px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--gw-gold-dark); animation: gwAiBlink 1s steps(1) infinite; }
@keyframes gwAiWord { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gw-ai-draft span { animation: none; opacity: 1; } }

/* AI Interview: face-to-face video call mock */
.gw-ai-call { position: relative; height: 232px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--gw-navy-light), var(--gw-navy) 70%); }
.gw-ai-callrec, .gw-ai-callq { position: absolute; top: 10px; z-index: 2; padding: 4px 11px 3px; border-radius: 999px; background: rgba(var(--gw-navy-rgb), .65); font-size: 11.5px; font-weight: 600; color: var(--gw-white); display: inline-flex; align-items: center; gap: 6px; }
.gw-ai-callrec { left: 12px; }
.gw-ai-callq { left: 50%; transform: translateX(-50%); color: var(--gw-gold); letter-spacing: .04em; }
.gw-ai-callrec b { font-variant-numeric: tabular-nums; color: var(--gw-white); }
.gw-ai-tile { position: absolute; display: flex; align-items: center; justify-content: center; }
.gw-ai-tile--ai { inset: 0 0 56px 0; }
.gw-ai-avatar { position: relative; width: 78px; height: 78px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-gold); color: var(--gw-navy); }
.gw-ai-avatar::before, .gw-ai-avatar::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(var(--gw-gold-rgb), .55); animation: gwAiRing 2.2s ease-out infinite; }
.gw-ai-avatar::after { animation-delay: 1.1s; }
@keyframes gwAiRing { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.gw-ai-tilename { position: absolute; left: 12px; bottom: 8px; padding: 2px 9px 1px; border-radius: 8px; background: rgba(var(--gw-navy-rgb), .7); font-size: 11px; font-weight: 600; color: var(--gw-white); }
.gw-ai-tile--ai .gw-ai-tilename { left: 50%; bottom: auto; top: calc(50% + 50px); transform: translateX(-50%); }
.gw-ai-tile--you { right: 12px; top: 44px; width: 112px; height: 84px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--gw-slate), var(--gw-navy-light)); border: 2px solid rgba(var(--gw-gold-rgb), .7); z-index: 2; }
.gw-ai-you { position: absolute; inset: 0; }
.gw-ai-you i { position: absolute; left: 50%; top: 14px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--gw-ice); }
.gw-ai-you em { position: absolute; left: 50%; top: 48px; width: 62px; height: 50px; margin-left: -31px; border-radius: 31px 31px 0 0; background: var(--gw-ice); }
.gw-ai-tile--you .gw-ai-tilename { left: 6px; bottom: 5px; font-size: 10px; }
.gw-ai-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 16px 10px; background: linear-gradient(0deg, rgba(var(--gw-navy-rgb), .96), rgba(var(--gw-navy-rgb), .75)); text-align: center; }
.gw-ai-caption .gw-ai-wave { height: 18px; margin-bottom: 4px; }
.gw-ai-caption .gw-ai-wave i { background: var(--gw-gold); width: 3px; }
.gw-ai-caption p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--gw-white); }
@media (max-width: 767.98px) {
    .gw-ai-call { height: 214px; }
    .gw-ai-avatar { width: 64px; height: 64px; }
    .gw-ai-tile--you { width: 84px; height: 64px; top: 40px; }
    .gw-ai-you i { top: 9px; width: 22px; height: 22px; margin-left: -11px; }
    .gw-ai-you em { top: 34px; width: 46px; height: 40px; margin-left: -23px; }
    .gw-ai-callq { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gw-ai-avatar::before, .gw-ai-avatar::after { animation: none; opacity: .4; } }

/* Interviewer avatar: illustrated person on the call */
.gw-ai-tile--ai { align-items: flex-end; }
.gw-ai-avatar { width: auto; height: auto; border-radius: 0; background: none; align-items: flex-end; }
.gw-ai-avatar::before, .gw-ai-avatar::after { display: none; }
.gw-ai-avatar svg { display: block; margin-bottom: 42px; }
.gw-av-body { fill: var(--gw-gold); }
.gw-av-lapel { fill: var(--gw-gold-dark); }
.gw-av-neck { fill: var(--gw-ice); opacity: .85; }
.gw-av-head { fill: var(--gw-ice); }
.gw-av-hair { fill: var(--gw-gold-dark); }
.gw-av-eye { fill: var(--gw-navy); transform-box: fill-box; transform-origin: center; animation: gwAvBlink 4s infinite; }
.gw-av-mouth { fill: var(--gw-navy); transform-box: fill-box; transform-origin: center; animation: gwAvTalk .5s ease-in-out infinite alternate; }
.gw-av-set { stroke: var(--gw-navy); stroke-width: 4; stroke-linecap: round; }
.gw-av-mic { fill: var(--gw-navy); }
@keyframes gwAvBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes gwAvTalk { from { transform: scaleY(.4); } to { transform: scaleY(1.6); } }
.gw-ai-tile--ai .gw-ai-tilename { top: auto; bottom: 62px; left: 12px; transform: none; }
.gw-ai-tile--ai { background: radial-gradient(circle at 50% 55%, rgba(var(--gw-gold-rgb), .22), transparent 60%); }
@media (max-width: 767.98px) { .gw-ai-avatar svg { width: 118px; height: 126px; margin-bottom: 36px; } }
@media (prefers-reduced-motion: reduce) { .gw-av-eye, .gw-av-mouth { animation: none; } }

/* Video call v2: roomier stage, whole person visible, subtitle bar + call controls */
.gw-ai-call { height: 284px; }
.gw-ai-tile--ai { inset: 0 0 64px 0; }
.gw-ai-avatar svg { width: 168px; height: 178px; margin-bottom: 0; }
.gw-ai-tile--ai .gw-ai-tilename { left: 12px; bottom: 10px; }
.gw-ai-tile--you { top: auto; bottom: 76px; right: 14px; width: 124px; height: 92px; }
.gw-ai-caption { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 14px; text-align: left; background: rgba(var(--gw-navy-rgb), .96); border-top: 1px solid rgba(var(--gw-gold-rgb), .25); }
.gw-ai-caption .gw-ai-wave { flex: 0 0 auto; height: 26px; margin: 0; gap: 3px; }
.gw-ai-caption .gw-ai-wave i { width: 3px; }
.gw-ai-caption p { flex: 1; min-width: 0; font-size: 14px; }
.gw-ai-ctrls { flex: 0 0 auto; display: inline-flex; gap: 8px; }
.gw-ai-ctrls b { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--gw-white-rgb, 255, 255, 255), .16); color: var(--gw-white); }
.gw-ai-ctrls b.is-on { background: var(--gw-gold); color: var(--gw-navy); }
.gw-ai-ctrls b.is-end { background: var(--gw-danger); color: var(--gw-white); }
@media (max-width: 767.98px) {
    .gw-ai-call { height: 250px; }
    .gw-ai-avatar svg { width: 130px; height: 138px; }
    .gw-ai-tile--you { width: 84px; height: 64px; bottom: 74px; right: 10px; }
    .gw-ai-ctrls b:not(.is-end) { display: none; }
    .gw-ai-caption .gw-ai-wave { display: none; }
    .gw-ai-caption p { font-size: 13px; }
}

/* Video call v3: calm, premium. The AI is a living voice orb (no cartoon), "You" is a quiet glass tile. */
.gw-ai-tile--ai { align-items: center; inset: 0 0 64px 0; background: radial-gradient(circle at 50% 46%, rgba(var(--gw-gold-rgb), .20), transparent 58%); }
.gw-ai-orb { position: relative; width: 112px; height: 112px; margin-top: -8px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 28%, var(--gw-white), var(--gw-gold) 34%, var(--gw-gold-dark) 100%); box-shadow: 0 0 0 10px rgba(var(--gw-gold-rgb), .14), 0 0 60px rgba(var(--gw-gold-rgb), .45); animation: gwAiBreathe 2.4s ease-in-out infinite; }
.gw-ai-orb i { position: absolute; border-radius: 50%; filter: blur(14px); mix-blend-mode: screen; }
.gw-ai-orb i:nth-child(1) { width: 70px; height: 70px; left: -14px; top: 6px; background: var(--gw-white); opacity: .8; animation: gwAiBlobA 3.6s ease-in-out infinite; }
.gw-ai-orb i:nth-child(2) { width: 64px; height: 64px; right: -12px; bottom: -6px; background: var(--gw-gold-dark); opacity: .9; animation: gwAiBlobB 4.2s ease-in-out infinite; }
.gw-ai-orb i:nth-child(3) { width: 46px; height: 46px; left: 34px; top: 40px; background: var(--gw-gold); opacity: .9; animation: gwAiBlobC 2.8s ease-in-out infinite; }
.gw-ai-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -10px 22px rgba(var(--gw-navy-rgb), .28), inset 0 6px 14px rgba(255, 255, 255, .5); }
@keyframes gwAiBreathe { 50% { transform: scale(1.07); } }
@keyframes gwAiBlobA { 50% { transform: translate(34px, 18px) scale(1.2); } }
@keyframes gwAiBlobB { 50% { transform: translate(-30px, -22px) scale(.85); } }
@keyframes gwAiBlobC { 50% { transform: translate(14px, -16px) scale(1.3); } }
.gw-ai-tile--ai .gw-ai-tilename { left: 50%; bottom: 12px; transform: translateX(-50%); background: none; padding: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.gw-ai-tilename em { font-style: normal; margin-left: 6px; color: var(--gw-gold); font-weight: 500; }
.gw-ai-tile--you { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.gw-ai-you i, .gw-ai-you em { background: rgba(255, 255, 255, .35); }
.gw-ai-tile--you .gw-ai-tilename { background: none; padding: 0; }
.gw-ai-ctrls b.is-on { background: rgba(255, 255, 255, .16); color: var(--gw-white); }
.gw-ai-callq { color: var(--gw-white); background: rgba(255, 255, 255, .12); }
@media (max-width: 767.98px) { .gw-ai-orb { width: 88px; height: 88px; } .gw-ai-orb i:nth-child(1) { width: 54px; height: 54px; } .gw-ai-orb i:nth-child(2) { width: 50px; height: 50px; } .gw-ai-orb i:nth-child(3) { left: 26px; top: 30px; width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .gw-ai-orb, .gw-ai-orb i { animation: none; } }

/* Gateway logo at the heart of the AI orb */
.gw-ai-orb-logo { position: absolute; z-index: 2; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gw-navy); box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .55), 0 6px 18px rgba(var(--gw-navy-rgb), .45); }
.gw-ai-orb-logo img { width: 70%; height: 70%; object-fit: contain; display: block; }
@media (max-width: 767.98px) { .gw-ai-orb-logo { width: 50px; height: 50px; margin: -25px 0 0 -25px; } }

/* Video call v4: the logo is the hero. No solid gold ball: a calm glass disc with thin gold voice ripples around it. */
.gw-ai-orb { width: 150px; height: 150px; margin-top: -6px; overflow: visible; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--gw-navy-light), var(--gw-navy) 78%); box-shadow: 0 0 0 1px rgba(var(--gw-gold-rgb), .55), 0 0 46px rgba(var(--gw-gold-rgb), .22), inset 0 0 28px rgba(var(--gw-gold-rgb), .12); animation: none; }
.gw-ai-orb::after { inset: auto; border-radius: 50%; box-shadow: none; }
.gw-ai-orb i { filter: none; mix-blend-mode: normal; background: none; border: 1.5px solid rgba(var(--gw-gold-rgb), .55); left: 0; top: 0; right: 0; bottom: 0; width: auto; height: auto; opacity: 0; transform: none; animation: gwAiRipple 3s ease-out infinite; }
.gw-ai-orb i:nth-child(2) { animation-delay: 1s; }
.gw-ai-orb i:nth-child(3) { animation-delay: 2s; }
@keyframes gwAiRipple { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }
.gw-ai-orb-logo { left: 0; top: 0; width: 100%; height: 100%; margin: 0; background: none; box-shadow: none; animation: gwAiBreathe 3s ease-in-out infinite; }
.gw-ai-orb-logo img { width: 74%; height: 74%; }
@media (max-width: 767.98px) { .gw-ai-orb { width: 112px; height: 112px; } .gw-ai-orb-logo { width: 100%; height: 100%; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .gw-ai-orb i, .gw-ai-orb-logo { animation: none; } .gw-ai-orb i { opacity: .25; transform: scale(1.3); } }
/* v4 fix: reset the old blob rules (they use :nth-child, so they need the same specificity) */
.gw-ai-orb i:nth-child(n) { position: absolute; inset: 0; width: auto; height: auto; margin: 0; background: none; border: 1.5px solid rgba(var(--gw-gold-rgb), .5); border-radius: 50%; filter: none; mix-blend-mode: normal; opacity: 0; animation: gwAiRipple 3s ease-out infinite; }
.gw-ai-orb i:nth-child(2) { animation-delay: 1s; }
.gw-ai-orb i:nth-child(3) { animation-delay: 2s; }
.gw-ai-orb-logo img { width: 66%; height: 66%; }
@media (prefers-reduced-motion: reduce) { .gw-ai-orb i:nth-child(n) { animation: none; opacity: .25; transform: scale(1.3); } }
@media (max-width: 767.98px) { .gw-ai-tilename em { display: none; } }

/* Phones: the four tools as a tidy 2 x 2 grid instead of a row that scrolls sideways and cuts the third tab. */
@media (max-width: 767.98px) {
    .gw-ai-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
    .gw-ai-tab { flex: none; min-width: 0; border-radius: 16px; padding: 9px 10px; }
}

/* Clearer tabs: the unselected ones were see-through over the gradient. Now they are a solid navy-light chip with a thin gold edge and a solid gold icon; the selected one stays white. */
.gw-ai-tab:not(.is-active):not([aria-selected="true"]) {
    background: var(--gw-navy-light);
    box-shadow: inset 0 0 0 1px rgba(var(--gw-gold-rgb), .45);
}
.gw-ai-tab:not(.is-active):not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--gw-navy-light) 85%, var(--gw-white)); }
.gw-ai-tab:not(.is-active):not([aria-selected="true"]) .gw-ai-ico { background: var(--gw-gold); color: var(--gw-navy); }
.gw-ai-tab:not(.is-active):not([aria-selected="true"]) .gw-ai-tab-txt b { color: var(--gw-white); }
