/*
    Ability in Motion - Custom Styles
    Single theme: pink-to-blue neon gradient on a dark canvas
*/

:root {
    --aim-bg:        #07040f;
    --aim-bg-alt:    #0d0a1e;
    --aim-bg-alt2:   #120c24;
    --aim-text:      #eae7f7;
    --aim-text-muted:#b0a8d1;
    --aim-pink:      #ff2e9c;
    --aim-purple:    #8a3ffa;
    --aim-blue:      #33b4ff;
    --aim-gradient:  linear-gradient(90deg, var(--aim-pink) 0%, var(--aim-purple) 50%, var(--aim-blue) 100%);
}

/* =============================================
   SITE LOGO (gradient text wordmark)
   ============================================= */

.site-logo-text {
    font-family: "Open Sans", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.3em;
    letter-spacing: 0.02em;
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

/* =============================================
   PAGE BACKGROUND - pink/blue glow on near-black
   ============================================= */

body {
    background: var(--aim-bg);
}

body.landing #page-wrapper {
    background-image:
        radial-gradient(ellipse 60% 50% at 12% 15%, rgba(255, 46, 156, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 45% at 88% 80%, rgba(51, 180, 255, 0.20), transparent 60%);
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Mobile fallback (no fixed attachment) */
body.is-mobile.landing #banner,
body.is-mobile.landing .wrapper.style4 {
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 46, 156, 0.22), transparent 60%),
        radial-gradient(ellipse 70% 55% at 85% 90%, rgba(51, 180, 255, 0.20), transparent 60%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Banner preload fade */
#banner:after {
    background: var(--aim-bg);
}

/* Banner headline accent lines + glow */
#banner h2:before,
#banner h2:after {
    background: var(--aim-gradient);
    box-shadow: 0 0 12px rgba(255, 46, 156, 0.5), 0 0 12px rgba(51, 180, 255, 0.4);
}
#banner h2 {
    text-shadow: 0 0 40px rgba(255, 46, 156, 0.2), 0 0 80px rgba(51, 180, 255, 0.15);
}

/* =============================================
   HEADER CONTACT BUTTON
   ============================================= */

.header-contact {
    font-size: 0.65em !important;
    height: 2.2em !important;
    line-height: 2.2em !important;
    padding: 0 1.2em !important;
    margin: 0 0.5em;
    vertical-align: middle;
    border: 0 !important;
}

@media screen and (min-width: 737px) {
    #header nav > ul > li > a.header-contact {
        display: inline-block;
    }
}

/* =============================================
   INNER PAGE TITLE (e.g. Workshops)
   ============================================= */

#main > header,
body.is-mobile #main > header {
    padding: 9em 2em 6em 2em;
    background-color: var(--aim-bg);
    background-image:
        radial-gradient(ellipse 60% 80% at 12% 15%, rgba(255, 46, 156, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 75% at 88% 80%, rgba(51, 180, 255, 0.20), transparent 60%);
    background-attachment: scroll;
}
#main > header h2 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#main > header p {
    color: var(--aim-text-muted);
}

/* Workshops: photo hero, darkened so the white title stays readable */
#main > header.hero-workshops,
body.is-mobile #main > header.hero-workshops {
    padding: 13em 2em 10em 2em;
    background-image:
        linear-gradient(to bottom, rgba(7, 4, 15, 0.62) 0%, rgba(7, 4, 15, 0.55) 60%, var(--aim-bg) 100%),
        url("../../images/workshops-hero.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
#main > header.hero-workshops h2 {
    background: none;
    color: #fff;
    text-shadow: 0 2px 18px rgba(7, 4, 15, 0.9);
}
#main > header.hero-workshops p {
    color: #fff;
    text-shadow: 0 1px 12px rgba(7, 4, 15, 0.95);
}

@media screen and (max-width: 736px) {
    #main > header.hero-workshops,
    body.is-mobile #main > header.hero-workshops {
        padding: 9em 1.5em 6em 1.5em;
    }
}

.spotlight .content .actions {
    margin-top: 1.5em;
    margin-bottom: 0;
}

/* =============================================
   BANNER LOGO
   ============================================= */

#banner h2.banner-logo {
    padding: 0.6em 1em;
    text-shadow: none;
}
#banner h2.banner-logo img {
    display: block;
    width: min(28rem, 68vw);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 46, 156, 0.25));
}

/* =============================================
   CONTACT METHODS (phone / email)
   ============================================= */

.contact-methods {
    list-style: none;
    padding: 0;
    margin: 2em 0 0;
}
.contact-methods li {
    padding: 0.35em 0;
    font-size: 1.05em;
}
.contact-methods .icon {
    margin-right: 0.5em;
    opacity: 0.8;
}
.contact-methods a {
    border-bottom: 1px solid currentColor;
    font-weight: 600;
}

/* =============================================
   POWERED BY FOOTER BLOCK
   ============================================= */

.powered-by {
    margin-top: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
.powered-by:hover { opacity: 1; }

.powered-by span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jam-logo {
    height: 32px;
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.powered-by a:hover .jam-logo { opacity: 1; }

/* =============================================
   HEADER / MENU
   ============================================= */

#header {
    background: var(--aim-bg);
    border-bottom: 1px solid rgba(255, 46, 156, 0.12);
}

#menu {
    background: #08081e;
    border-left: 1px solid rgba(51, 180, 255, 0.25);
}
#menu ul > li {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* =============================================
   SECTION: About / Mission (style1)
   ============================================= */

.wrapper.style1 {
    background-color: var(--aim-bg-alt);
    color: var(--aim-text-muted);
}
.wrapper.style1 .about-body {
    max-width: 48em;
    margin: 1.5em auto 0 auto;
    color: var(--aim-text-muted);
}
.wrapper.style1 h2,
.wrapper.style1 h3,
.wrapper.style1 h4,
.wrapper.style1 h5,
.wrapper.style1 h6 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wrapper.style1 header p       { color: #cabfe8; }
.wrapper.style1 header.major p { color: var(--aim-text-muted); }
.wrapper.style1 header.major h2,
.wrapper.style1 header.major h3 {
    border-bottom-color: rgba(255, 46, 156, 0.3);
}
.wrapper.style1 .icon.major {
    border-color: rgba(255, 255, 255, 0.15);
}
.wrapper.style1 select option {
    background: var(--aim-bg-alt);
}
.wrapper.style1 input[type="checkbox"]:checked + label:before {
    background: #fff;
    color: var(--aim-bg-alt);
}
.wrapper.style1 input[type="submit"],
.wrapper.style1 input[type="reset"],
.wrapper.style1 input[type="button"],
.wrapper.style1 button,
.wrapper.style1 .button {
    box-shadow: inset 0 0 0 2px var(--aim-blue);
    color: var(--aim-blue);
}

/* =============================================
   SECTION: Offerings spotlights (style2)
   ============================================= */

.wrapper.style2 {
    background-color: var(--aim-bg);
}

.spotlight .image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.offer-icon-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(var(--aim-bg-alt2), var(--aim-bg-alt2)), var(--aim-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 40px rgba(255, 46, 156, 0.2), 0 0 60px rgba(51, 180, 255, 0.15);
}
.offer-icon-circle i {
    font-size: 3em;
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.spotlight .content h2 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.spotlight .content p {
    color: var(--aim-text-muted);
}
.spotlight .content p a {
    color: var(--aim-blue);
    border-bottom: 1px dotted rgba(51, 180, 255, 0.5);
}
.spotlight .content p a:hover {
    border-bottom-color: var(--aim-blue);
}

/* =============================================
   SECTION: Membership features (style3)
   ============================================= */

.wrapper.style3 {
    background-color: var(--aim-bg-alt2);
    color: var(--aim-text-muted);
}
.wrapper.style3 strong,
.wrapper.style3 b,
.wrapper.style3 h2,
.wrapper.style3 h3,
.wrapper.style3 h4,
.wrapper.style3 h5,
.wrapper.style3 h6 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wrapper.style3 header p        { color: #cabfe8; }
.wrapper.style3 header.major p  { color: var(--aim-text-muted); }
.wrapper.style3 select option   { background: var(--aim-bg-alt2); }
.wrapper.style3 input[type="checkbox"]:checked + label:before {
    background: #fff;
    color: var(--aim-bg-alt2);
}
.wrapper.style3 .icon.major { border-color: rgba(255, 255, 255, 0.12); }
.wrapper.style3 ul.alt li   { border-color: rgba(255, 255, 255, 0.12); }
.wrapper.style3 table tbody tr { border-color: rgba(255, 255, 255, 0.12); }
.wrapper.style3 table thead     { border-color: rgba(255, 255, 255, 0.12); }
.wrapper.style3 table tfoot     { border-color: rgba(255, 255, 255, 0.12); }
.wrapper.style3 input[type="submit"],
.wrapper.style3 input[type="reset"],
.wrapper.style3 input[type="button"],
.wrapper.style3 button,
.wrapper.style3 .button {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    color: #fff;
}
.wrapper.style3 .features li {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.wrapper.style3 .features li:before {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =============================================
   SECTION: FAQ (style5)
   ============================================= */

.wrapper.style5 {
    background-color: var(--aim-bg);
    color: var(--aim-text-muted);
}
.wrapper.style5 h2 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2em 0;
}
.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--aim-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary:after {
    content: '+';
    flex: none;
    font-size: 1.5em;
    line-height: 1;
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.25s ease;
}
.faq-item[open] summary:after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0.8em 0 0 0;
    color: var(--aim-text-muted);
    line-height: 1.7;
}

/* =============================================
   SECTION: CTA (style4)
   ============================================= */

.wrapper.style4 h2 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wrapper.style4 header p {
    color: var(--aim-text-muted);
}

/* =============================================
   FOOTER
   ============================================= */

#footer {
    background-color: #020208;
}
body.landing #footer {
    background-color: rgba(2, 2, 8, 0.95);
}

/* =============================================
   BUTTONS
   ============================================= */

.button.primary,
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary {
    background-image: var(--aim-gradient) !important;
    background-color: var(--aim-purple) !important;
    border: 0 !important;
    box-shadow: 0 0 22px rgba(255, 46, 156, 0.35), 0 0 22px rgba(51, 180, 255, 0.25) !important;
}
.button.primary:hover,
input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover {
    box-shadow: 0 0 34px rgba(255, 46, 156, 0.55), 0 0 34px rgba(51, 180, 255, 0.4) !important;
}
.button.primary:active,
input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active,
button.primary:active {
    box-shadow: 0 0 15px rgba(255, 46, 156, 0.4), 0 0 15px rgba(51, 180, 255, 0.3) !important;
}

.button:not(.primary) {
    box-shadow: inset 0 0 0 2px var(--aim-blue);
    color: var(--aim-blue);
}
.button:not(.primary):hover {
    background-color: rgba(51, 180, 255, 0.1) !important;
    box-shadow: inset 0 0 0 2px var(--aim-blue), 0 0 14px rgba(51, 180, 255, 0.3);
}

/* Diamond icon accent colours */
.icon.style1 { color: var(--aim-pink); }
.icon.style2 { color: var(--aim-purple); }
.icon.style3 { color: var(--aim-blue); }

/* Features grid icon colour (fallback for browsers without background-clip:text) */
.features li:before { color: var(--aim-blue); }

/* Input focus ring */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px var(--aim-blue), 0 0 10px rgba(51, 180, 255, 0.3);
}

/* =============================================
   SECTION: Katz Corner - upcoming events (style6)
   ============================================= */

.wrapper.style6 {
    background-color: var(--aim-bg-alt);
    color: var(--aim-text-muted);
}
.wrapper.style6 h2 {
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wrapper.style6 header.major p { color: var(--aim-text-muted); }

.kc-events {
    max-width: 860px;
    margin: 0 auto 2.5em auto;
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    text-align: left;
}

.kc-card {
    display: flex;
    gap: 1.5em;
    align-items: flex-start;
    padding: 1.5em;
    border-radius: 10px;
    background-image: linear-gradient(var(--aim-bg-alt2), var(--aim-bg-alt2)), var(--aim-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.kc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(255, 46, 156, 0.22), 0 0 26px rgba(51, 180, 255, 0.18);
}

.kc-date {
    flex: none;
    width: 4.8em;
    padding: 0.6em 0;
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.1;
}
.kc-date span { display: block; }
.kc-month,
.kc-weekday {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aim-text-muted);
}
.kc-day {
    margin: 0.15em 0;
    font-size: 2em;
    font-weight: 800;
    background: var(--aim-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kc-body { flex: 1; min-width: 0; }
.kc-body h3 {
    margin: 0 0 0.4em 0;
    font-size: 1em;
    color: var(--aim-text);
    letter-spacing: 0.08em;
}
.kc-meta {
    margin: 0 0 0.5em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.4em;
    font-size: 0.85em;
    color: #cabfe8;
}
.kc-meta i { color: var(--aim-pink); margin-right: 0.2em; }
.kc-desc {
    margin: 0 0 0.6em 0;
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--aim-text-muted);
}
.kc-link {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aim-blue) !important;
    border-bottom: 1px dotted rgba(51, 180, 255, 0.5) !important;
}
.kc-link:hover { border-bottom-color: var(--aim-blue) !important; }

.kc-status {
    text-align: center;
    color: var(--aim-text-muted);
    margin: 0;
}

@media screen and (max-width: 480px) {
    .kc-card { gap: 1em; padding: 1.1em; }
    .kc-date { width: 3.8em; }
    .kc-day  { font-size: 1.6em; }
}

/* Peeking cat Lottie, pinned flush to the section's bottom-right corner.
   The animation canvas is pre-cropped to the cat (1260x710). */
#katz-corner {
    position: relative;
    overflow: hidden;
}
.kc-cat {
    position: absolute;
    right: 2em;
    bottom: 0;
    width: 110px;
    aspect-ratio: 1260 / 710;
    pointer-events: none;
    line-height: 0;
}
.kc-cat-anim,
.kc-cat-anim svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media screen and (max-width: 736px) {
    .kc-cat { width: 80px; right: 1em; }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

/* Text read by screen readers but not shown on screen */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keyboard users can jump past the header */
.skip-link {
    position: fixed;
    top: 0.5em;
    left: 0.5em;
    z-index: 100001;
    padding: 0.6em 1.2em;
    background: var(--aim-bg);
    color: #fff !important;
    border: 2px solid var(--aim-blue) !important;
    border-radius: 4px;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}
.skip-link:focus {
    transform: translateY(0);
}

#main:focus {
    outline: none;
}

/* Keep jumped-to content clear of the fixed header */
html {
    scroll-padding-top: 4em;
}

/* Visible focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--aim-blue);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Template links that switch their outline off */
#header nav > ul > li > a:focus-visible,
#banner .more:focus-visible,
#menu a:focus-visible {
    outline: 3px solid var(--aim-blue) !important;
    outline-offset: 3px;
}

/* Closed menu panel: off-screen and out of the Tab order */
#menu {
    visibility: hidden;
    transition: transform 0.5s ease, visibility 0s linear 0.5s;
}
body.is-menu-visible #menu {
    visibility: visible;
    transition: transform 0.5s ease;
}

/* =============================================
   CHAT WIDGET (assets/js/aim-chat.js)
   Sized in px so the template's em scaling and
   button/textarea styles don't leak in.
   ============================================= */

#aim-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9990;
    font-family: "Open Sans", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Reset the template's button look for everything inside the widget */
#aim-chat button,
#aim-chat a.aim-chat-opt {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    height: auto;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0;
    max-width: none;
    min-width: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    width: auto;
}

#aim-chat button:focus-visible,
#aim-chat a:focus-visible,
#aim-chat textarea:focus-visible {
    outline: 3px solid var(--aim-blue);
    outline-offset: 2px;
}
#aim-chat .aim-chat-log:focus { outline: none; }

/* Round button in the corner */
#aim-chat #aim-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--aim-purple) var(--aim-gradient);
    box-shadow: 0 0 22px rgba(255, 46, 156, 0.4), 0 0 22px rgba(51, 180, 255, 0.3);
    color: #fff;
    font-size: 24px;
    line-height: 60px;
    text-align: center;
    flex: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#aim-chat #aim-chat-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(255, 46, 156, 0.6), 0 0 32px rgba(51, 180, 255, 0.45);
}
#aim-chat.is-open #aim-chat-toggle .icon:before { content: "\f00d"; }

/* Window */
#aim-chat-window {
    display: flex;
    flex-direction: column;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 570px;
    max-height: calc(100vh - 130px);
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    background-image: linear-gradient(var(--aim-bg-alt2), var(--aim-bg-alt2)), var(--aim-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6), 0 0 30px rgba(138, 63, 250, 0.2);
    color: var(--aim-text);
    animation: aim-chat-in 0.25s ease;
}
#aim-chat-window[hidden] { display: none; }

@keyframes aim-chat-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.aim-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.aim-chat-avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--aim-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
}
.aim-chat-headtext { flex: 1; min-width: 0; }
.aim-chat-title { font-weight: 700; color: #fff; }
.aim-chat-sub   { font-size: 12px; color: var(--aim-text-muted); }
#aim-chat .aim-chat-close {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--aim-text-muted);
    font-size: 16px;
    text-align: center;
}
#aim-chat .aim-chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Conversation */
.aim-chat-log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.aim-chat-msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 16px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    animation: aim-chat-pop 0.25s ease;
}
.aim-chat-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border-bottom-left-radius: 4px;
    color: var(--aim-text);
}
.aim-chat-user {
    align-self: flex-end;
    background: #5b2bc4;
    border-bottom-right-radius: 4px;
    color: #fff;
    font-weight: 600;
}
.aim-chat-bot a {
    color: var(--aim-blue);
    border-bottom: 1px solid currentColor;
    font-weight: 600;
}

@keyframes aim-chat-pop {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.aim-chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 13px 14px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}
.aim-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aim-text-muted);
    animation: aim-chat-dot 1.1s infinite;
}
.aim-chat-typing span:nth-child(1) { background: var(--aim-pink); }
.aim-chat-typing span:nth-child(2) { background: var(--aim-purple); animation-delay: 0.18s; }
.aim-chat-typing span:nth-child(3) { background: var(--aim-blue); animation-delay: 0.36s; }

@keyframes aim-chat-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30%           { transform: translateY(-6px); opacity: 1; }
}

/* Lottie on the "all set" card (animation canvas is 723x442) */
.aim-chat-lottie {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 723 / 442;
    margin: 0 auto 8px;
}
.aim-chat-lottie svg { display: block; width: 100% !important; height: 100% !important; }

.aim-chat-done {
    padding: 14px;
    border: 1px solid rgba(51, 180, 255, 0.35);
    border-radius: 14px;
    text-align: center;
}
.aim-chat-done-title { font-size: 17px; font-weight: 700; color: #fff; }
.aim-chat-done-text  { margin-top: 4px; color: var(--aim-text-muted); overflow-wrap: anywhere; }

/* Choices and text entry */
.aim-chat-input {
    flex: none;
    max-height: 46%;
    overflow-y: auto;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.aim-chat-input:empty { display: none; }

.aim-chat-options { display: flex; flex-wrap: wrap; gap: 8px; }
#aim-chat .aim-chat-opt {
    padding: 8px 14px;
    border: 1px solid var(--aim-blue);
    border-radius: 18px;
    color: var(--aim-blue);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
#aim-chat .aim-chat-opt:hover {
    background: var(--aim-blue);
    color: var(--aim-bg);
}

#aim-chat .aim-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
}
#aim-chat .aim-chat-form textarea {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 44px;
    max-height: 100px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #fff;
    font: inherit;
    letter-spacing: 0;
    line-height: 1.4;
    resize: none;
}
#aim-chat .aim-chat-form textarea::placeholder { color: var(--aim-text-muted); opacity: 1; }
#aim-chat .aim-chat-form textarea:focus { border-color: var(--aim-blue); }
#aim-chat .aim-chat-send {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--aim-purple);
    color: #fff;
    font-size: 16px;
    text-align: center;
}
#aim-chat .aim-chat-send:hover { background: #9d5bff; }

@media screen and (max-width: 480px) {
    #aim-chat { right: 14px; bottom: 16px; }
    #aim-chat-window { width: calc(100vw - 28px); max-height: calc(100vh - 110px); }
}

@media (prefers-reduced-motion: reduce) {
    #aim-chat-window,
    .aim-chat-msg,
    .aim-chat-typing span { animation: none; }
    #aim-chat #aim-chat-toggle { transition: none; }
}

/* =============================================
   SECTION: Book a free intro call (Google appointment schedule embed)
   ============================================= */

#book {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#book header.major p { color: var(--aim-text-muted); }

/* Google's page can't be restyled, so it sits in a neon gradient frame */
.book-frame {
    max-width: 960px;
    margin: 0 auto;
    border: 3px solid transparent;
    border-radius: 18px;
    background-image: linear-gradient(#111, #111), var(--aim-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 40px rgba(255, 46, 156, 0.25), 0 0 60px rgba(51, 180, 255, 0.2);
    overflow: hidden;
}
.book-frame iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    /* Fake dark mode: flip Google's white page to dark, then rotate hues back
       so its blue buttons stay blue. Delete this line to go back to white. */
    filter: invert(0.93) hue-rotate(180deg);
}

.book-fallback {
    margin: 1.25em 0 0 0;
    font-size: 0.9em;
    color: var(--aim-text-muted);
}

@media screen and (max-width: 736px) {
    .book-frame { border-radius: 12px; }
    .book-frame iframe { height: 900px; }
}
