/* ==========================================================================
   SLAY THAT SITE — 2026 REDESIGN LAYER
   Upwork-clean, elevated · green-forward · modern motion
   Loaded after theme.css; this layer owns the visual system.
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ------------------------------------------------ */
:root {
    /* Brand */
    --green: #14A800;
    --green-2: #1BC40F;
    --green-dark: #0C8A00;
    --lime: #C6F24E;
    --lime-soft: #EAFBC9;
    --tint: #EAF8EA;

    /* Neutrals */
    --ink: #0A0E14;
    --ink-2: #19212E;
    --muted: #566273;
    --line: #E7EBE9;
    --paper: #FFFFFF;
    --paper-2: #F6F8F6;
    --glass: rgba(255, 255, 255, .72);

    /* Remap legacy variable names so the whole theme recolors at once */
    --navy: #0A0E14;
    --teal: #14A800;
    --deep: #0C8A00;
    --blue: #14A800;
    --emerald: #1BC40F;
    --gold: #C6F24E;
    --coral: #14A800;
    --coral2: #0C8A00;
    --mint: #EAF8EA;
    --cream: #F6F8F6;
    --surface: #FFFFFF;
    --border: #E7EBE9;

    /* Type */
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;

    /* Radius + shadow */
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 28px;
    --shadow-sm: 0 8px 24px rgba(10, 14, 20, .06);
    --shadow: 0 26px 64px rgba(10, 14, 20, .10);
    --shadow-green: 0 16px 38px rgba(20, 168, 0, .26);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. BASE + TYPOGRAPHY ------------------------------------------- */
html { background: var(--paper); overflow-x: clip; }

body {
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }

p { color: var(--muted); }

::selection { background: var(--green); color: #fff; }

/* Eyebrow → pill chip with a live dot */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green-dark);
    background: var(--tint);
    border: 1px solid rgba(20, 168, 0, .16);
    border-radius: 999px;
    padding: 7px 14px 7px 12px;
    margin: 0 0 18px;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(20, 168, 0, .5);
    animation: stsPulse 2.4s var(--ease) infinite;
}

.center.eyebrow, .eyebrow.center { margin-left: auto; margin-right: auto; }

@keyframes stsPulse {
    0%   { box-shadow: 0 0 0 0 rgba(20, 168, 0, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(20, 168, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 168, 0, 0); }
}

/* ---------- 3. LIVE BACKGROUND, SCROLL BAR, PAGE CURTAIN ------------------- */
.sts-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--paper);
}

.sts-bg::before {
    content: "";
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(38% 38% at 16% 20%, rgba(20, 168, 0, .14), transparent 70%),
        radial-gradient(36% 36% at 84% 14%, rgba(198, 242, 78, .18), transparent 72%),
        radial-gradient(46% 46% at 72% 86%, rgba(20, 168, 0, .10), transparent 72%);
    animation: stsDrift 26s ease-in-out infinite alternate;
    will-change: transform;
}

.sts-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(10, 14, 20, .055) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(circle at 50% 28%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 50% 28%, #000, transparent 78%);
    opacity: .55;
}

@keyframes stsDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2.5%, 1.5%, 0) scale(1.06); }
    100% { transform: translate3d(-2%, 2.5%, 0) scale(1.04); }
}

/* Top scroll-progress bar (reuses --scroll-progress set by theme.js) */
.sts-scrollbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--scroll-progress, 0));
    background: linear-gradient(90deg, var(--green), var(--lime));
    box-shadow: 0 1px 10px rgba(20, 168, 0, .4);
    z-index: 1400;
    pointer-events: none;
}

/* Page-to-page transition curtain */
.sts-curtain {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateY(100%);
    background: linear-gradient(125deg, #070A0F 0%, #0B130D 48%, var(--green) 150%);
    transition: transform .58s var(--ease);
}

.sts-curtain.no-anim { transition: none; }
.sts-curtain.cover-in { transform: translateY(0); }
.sts-curtain.cover-out { transform: translateY(-100%); }

.sts-curtain-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--green-2), var(--green-dark));
    box-shadow: 0 0 0 0 rgba(198, 242, 78, .5);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s ease, transform .4s var(--ease);
}

.sts-curtain.cover-in .sts-curtain-mark { opacity: 1; transform: scale(1); animation: stsPulse 1.2s var(--ease) infinite; }
.sts-curtain-mark svg { width: 34px; height: 34px; }

/* ---------- 4. BUTTONS ----------------------------------------------------- */
.btn {
    position: relative;
    border-radius: 12px;
    padding: 15px 26px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    overflow: hidden;
    isolation: isolate;
    transform: translate(var(--mx, 0), var(--my, 0));
    transition: transform .35s var(--ease), box-shadow .3s var(--ease), background .3s ease, color .25s ease;
}

.btn-primary,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-2) 0%, var(--green) 55%, var(--green-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-green);
}

/* Shine sweep on hover */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .6s var(--ease);
}

.btn-primary:hover { transform: translate(var(--mx, 0), calc(var(--my, 0) - 3px)); box-shadow: 0 22px 48px rgba(20, 168, 0, .38); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: #fff; transform: translate(var(--mx, 0), calc(var(--my, 0) - 3px)); }

.btn-ghost.light { border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost.light:hover { background: rgba(255, 255, 255, .12); }

.text-link {
    color: var(--green-dark);
    font-weight: 800;
    border-bottom: 2px solid transparent;
    transition: border-color .25s ease;
}
.text-link:hover { color: var(--green-dark); border-color: var(--green); }

/* ---------- 5. HEADER + NAV + LOGO ---------------------------------------- */
.site-header {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid rgba(10, 14, 20, .06);
    box-shadow: none;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 40px rgba(10, 14, 20, .07);
}

.main-nav { font-size: 15px; font-weight: 600; }

.main-nav > a, .drop-trigger {
    position: relative;
    color: var(--ink);
}

.main-nav > a::after, .drop-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 22px;
    width: 100%;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s var(--ease);
}
.main-nav > a:hover::after, .nav-dropdown:hover .drop-trigger::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--green-dark); }

.arrow { border-color: var(--ink); }

/* New SVG logo mark */
.site-header .brand-mark,
.footer-brand .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}
.brand-mark::before, .brand-mark::after { content: none !important; display: none !important; }

.brand-logo {
    width: 46px;
    height: 46px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(20, 168, 0, .28));
    transition: transform .45s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }

.brand-logo-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: stsDraw 1.1s var(--ease) .15s forwards;
}
.brand-logo-tip {
    stroke-dasharray: 18;
    stroke-dashoffset: 18;
    animation: stsDraw .5s var(--ease) 1s forwards;
}
.brand-logo-dot { transform-origin: center; animation: stsDot 2.6s var(--ease) infinite; }

@keyframes stsDraw { to { stroke-dashoffset: 0; } }
@keyframes stsDot { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

.brand-copy span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.brand-copy small {
    color: var(--green-dark);
    font-weight: 700;
    letter-spacing: .14em;
}
.footer-brand .brand-copy small { color: var(--lime) !important; }

/* ---------- 6. HERO -------------------------------------------------------- */
.hero {
    background: transparent;
    overflow: visible;
}
.hero::before {
    background: radial-gradient(circle at 80% 18%, rgba(20, 168, 0, .12), transparent 42%);
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
}

.hero h1 span {
    color: var(--green-dark);
    position: relative;
}
@media (min-width: 861px) {
    .hero h1 span { white-space: nowrap; }
}
/* hand-drawn underline accent under the highlighted hero phrase */
.hero h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 12px;
    background: var(--lime);
    border-radius: 999px;
    z-index: -1;
    opacity: .85;
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: stsSwipe .8s var(--ease) .7s forwards;
}
@keyframes stsSwipe { to { transform: scaleX(1); } }

.hero-art img {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.trust-row span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px 9px 30px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.trust-row span::before { color: var(--green); left: 13px; }

.floating-stat {
    background: linear-gradient(150deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .72)) !important;
    border: 1px solid #fff !important;
    box-shadow: 0 24px 56px rgba(10, 14, 20, .14) !important;
}
.floating-stat strong { color: var(--green-dark); }
.floating-dot { background: var(--lime); box-shadow: 0 0 0 12px rgba(198, 242, 78, .22), 0 16px 40px rgba(198, 242, 78, .3); }

/* ---------- 7. SECTIONS + CARDS ------------------------------------------- */
.section { padding: 96px 0; }

.about-split, .process, .reviews { background: var(--tint); }

/* Frosted cards everywhere */
.service-card, .case-card, .blog-card, .contact-card,
.testimonials article, .feature-grid div, .process-grid div,
.founder-mini, .stats-grid div, .pricing-card, .values, .topic-card {
    background: rgba(255, 255, 255, .82) !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid var(--line) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.service-card:hover, .case-card:hover, .blog-card:hover,
.testimonials article:hover, .pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 168, 0, .35) !important;
    box-shadow: var(--shadow) !important;
}

/* Service grid — even 4-per-row */
.service-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* 8th CTA tile in the services grid */
.service-card-cta {
    background: linear-gradient(145deg, var(--green-2), var(--green-dark)) !important;
    border: 0 !important;
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.service-card-cta span, .service-card-cta h3, .service-card-cta p { color: #fff; }
.service-card-cta h3 { font-family: var(--font-display); }
.service-card-cta .cta-arrow { font-weight: 800; color: var(--lime); margin-top: 4px; }
.service-card-cta::after { display: none; }

/* Service cards */
.service-card span { color: var(--muted); font-weight: 700; }
.service-card h3 { font-family: var(--font-display); }
.service-card img {
    border-radius: 14px;
    background: var(--tint);
    padding: 10px;
    transition: transform .4s var(--ease);
}
.service-card:hover img { transform: scale(1.08) rotate(-3deg); }
.service-card::after { background: linear-gradient(90deg, var(--green), var(--lime)) !important; }

/* Stats */
.stats-grid strong { color: var(--green-dark); font-family: var(--font-display); font-size: 40px; letter-spacing: -0.03em; }
.stats-grid span { color: var(--muted); }
.case-snapshot-grid strong, .case-body h3, .service-outcome strong { color: var(--green-dark); }

/* Testimonials */
.testimonial-head img { border-color: var(--tint); }
.stars { color: var(--green); }
.trust-result, .mini-metrics span, .pill-row span, .post-signals span, .package-badge, .case-kicker span {
    background: var(--tint) !important;
    color: var(--green-dark) !important;
    border-color: rgba(20, 168, 0, .18) !important;
}

/* Service rows + check bullets */
.trust-row span::before, .service-row li::before, .feature-grid div::before,
.case-work li::before, .pricing-card li::before, .service-depth-card li::marker {
    color: var(--green) !important;
}
.pricing-card li::before { background: var(--green) !important; }
.case-work li::before { background: var(--green) !important; }

.pricing-card.is-featured {
    border-color: rgba(20, 168, 0, .4) !important;
    box-shadow: 0 26px 70px rgba(20, 168, 0, .16) !important;
}
.pricing-card.is-featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px;
    right: 22px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-green);
}

/* Topic / blog pills */
.topic-nav a { border-color: rgba(20, 168, 0, .2); }
.topic-nav a:hover { border-color: var(--green); color: var(--green-dark); }
.case-timeline div::before { color: var(--green); }

/* ---------- 8. FORMS + MODAL ---------------------------------------------- */
input, select, textarea {
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(20, 168, 0, .14);
}
.quote-progress span.is-active { background: linear-gradient(90deg, var(--green), var(--lime)); }
.service-checks label:has(input:checked) { border-color: var(--green); background: var(--tint); }

.modal-card { border-radius: var(--r-lg); }
.modal-close { background: var(--tint); }
.booking-option {
    border-color: rgba(20, 168, 0, .2);
    background: linear-gradient(135deg, var(--tint), #fff);
}

/* ---------- 9. DARK SECTIONS + CTA + FOOTER ------------------------------- */
.subhero.dark {
    background:
        radial-gradient(circle at 16% 18%, rgba(20, 168, 0, .3), transparent 30%),
        linear-gradient(135deg, #070A0F, #0E1A12) !important;
}

.cta-inner {
    background:
        radial-gradient(circle at 8% 24%, rgba(198, 242, 78, .22), transparent 26%),
        linear-gradient(135deg, var(--green-dark) 0%, #0A0E14 70%) !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.site-footer { background: #070A0F; }
.footer-grid h3 { color: #fff; font-family: var(--font-display); }
.footer-grid a:hover { color: var(--lime); }
.footer-brand .brand-copy span { color: #fff !important; }

/* ---------- 10. CHATBOT (recolor to green) -------------------------------- */
.sts-chatbot-toggle,
.sts-chatbot-form button,
.sts-chatbot-lead-actions button:last-child,
.sts-chatbot-intro-actions button:last-child {
    background: linear-gradient(135deg, var(--green-2), var(--green-dark)) !important;
}
.sts-chatbot-message.user { background: linear-gradient(135deg, var(--green-2), var(--green-dark)) !important; box-shadow: 0 12px 26px rgba(20, 168, 0, .18) !important; }
.sts-chatbot-header { background: linear-gradient(135deg, rgba(20, 168, 0, .26), rgba(12, 138, 0, .14)), #070A0F !important; }
.sts-chatbot-intro input:focus, .sts-chatbot-human input:focus { border-color: rgba(20, 168, 0, .5) !important; box-shadow: 0 0 0 3px rgba(20, 168, 0, .12) !important; }

/* ---------- 11. SCROLL GUIDE ---------------------------------------------- */
.scroll-fill { background: linear-gradient(180deg, var(--green), var(--lime)); }
.scroll-guide a { border-color: rgba(20, 168, 0, .4); }
.scroll-guide a.is-active { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 14px 34px rgba(20, 168, 0, .3); }

/* ---------- 12. MOTION UTILITIES ------------------------------------------ */
.sts-motion-ready .reveal,
.sts-motion-ready .service-card,
.sts-motion-ready .service-row,
.sts-motion-ready .stats-grid div,
.sts-motion-ready .testimonials article,
.sts-motion-ready .case-card,
.sts-motion-ready .blog-card,
.sts-motion-ready .pricing-card,
.sts-motion-ready .feature-grid div,
.sts-motion-ready .process-grid div {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sts-motion-ready .reveal.is-visible,
.sts-motion-ready .service-card.is-visible,
.sts-motion-ready .service-row.is-visible,
.sts-motion-ready .stats-grid div.is-visible,
.sts-motion-ready .testimonials article.is-visible,
.sts-motion-ready .case-card.is-visible,
.sts-motion-ready .blog-card.is-visible,
.sts-motion-ready .pricing-card.is-visible,
.sts-motion-ready .feature-grid div.is-visible,
.sts-motion-ready .process-grid div.is-visible {
    opacity: 1;
    transform: none;
}

/* Card 3D tilt set by JS */
.sts-tilt { transform: perspective(800px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); transform-style: preserve-3d; }

/* ---------- 13. REDUCED MOTION -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .sts-bg::before, .eyebrow::before, .brand-logo-dot,
    .brand-logo-line, .brand-logo-tip, .hero h1 span::after { animation: none !important; }
    .sts-curtain { display: none !important; }
    .brand-logo-line, .brand-logo-tip { stroke-dashoffset: 0 !important; }
    .hero h1 span::after { transform: scaleX(1) !important; }
}

.lead-magnet-img {
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

/* ==========================================================================
   STEP 6 — bento, sticky process, marquee, horizontal work, live hero
   ========================================================================== */

/* Hero live animation */
.hero, .subhero { position: relative; }
.sts-hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .container,
.subhero .container { position: relative; z-index: 1; }
.hero-art { transition: transform .4s var(--ease); will-change: transform; }

/* Marquee */
.sts-marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.sts-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: stsMarquee 24s linear infinite;
    will-change: transform;
}
.sts-marquee:hover .sts-marquee-track { animation-play-state: paused; }
.sts-marquee-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 30px);
    letter-spacing: -0.02em;
    color: var(--ink);
    padding: 16px 24px;
}
.sts-marquee-dot { color: var(--green); font-size: 16px; }
@keyframes stsMarquee { to { transform: translateX(-50%); } }

/* Bento grid */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 42px; }
.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 172px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(20, 168, 0, .3); }
.bento-tile h3 { font-family: var(--font-display); margin: 0; }
.bento-tile p { margin: 0; }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-lg h3 { font-size: 30px; }
.bento-wide { grid-column: span 2; }
.bento-green { background: linear-gradient(145deg, var(--green-2), var(--green-dark)); border: 0; color: #fff; align-items: flex-start; }
.bento-green strong { font-family: var(--font-display); font-size: 46px; line-height: 1; }
.bento-green span { color: rgba(255, 255, 255, .88); font-weight: 700; }
.bento-cta { background: linear-gradient(145deg, #0A0E14, #13231a); border: 0; color: #fff; }
.bento-cta h3 { color: #fff; }
.bento-cta .btn { margin-top: 6px; align-self: flex-start; }

/* Sticky process storytelling */
.process-sticky-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; margin-top: 40px; align-items: start; }
.process-visual { position: sticky; top: 110px; }
.process-visual-card {
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
    min-height: 300px; padding: 40px;
    border-radius: var(--r-lg);
    background: linear-gradient(145deg, var(--green-2), var(--green-dark));
    color: #fff; box-shadow: var(--shadow-green);
}
.process-visual-num { font-family: var(--font-display); font-weight: 700; font-size: 80px; line-height: 1; }
.process-visual-card strong { font-family: var(--font-display); font-size: 30px; }
.process-visual-card p { margin: 0; color: rgba(255, 255, 255, .88); }
.process-steps { display: grid; gap: 28px; }
.process-step {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
    min-height: 200px;
    padding: 32px; border: 1px solid var(--line); border-radius: var(--r);
    background: rgba(255, 255, 255, .7); opacity: .5;
    transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step.is-active { opacity: 1; border-color: rgba(20, 168, 0, .4); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.process-step > span { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--green); }
.process-step h3 { margin: 0 0 6px; font-family: var(--font-display); }
.process-step p { margin: 0; }

/* Horizontal work scroller */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.work-section h2 { text-align: left; margin: 0; }
.work-hint { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.work-scroller {
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 30px max(20px, calc((100% - 1180px) / 2));
    -webkit-overflow-scrolling: touch; cursor: grab; scrollbar-width: thin;
}
.work-scroller.is-grabbing { cursor: grabbing; }
.work-track { display: flex; gap: 22px; width: max-content; }
.work-card {
    scroll-snap-align: start; width: min(360px, 80vw);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card-media { aspect-ratio: 16 / 10; background: var(--tint); }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card-body { padding: 22px; }
.work-tag { display: inline-block; margin-bottom: 10px; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.work-card-body h3 { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; }
.work-card-body p { margin: 0 0 12px; font-size: 15px; }
.work-metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.work-metrics span { padding: 6px 10px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.work-scroller::-webkit-scrollbar { height: 8px; }
.work-scroller::-webkit-scrollbar-thumb { background: rgba(20, 168, 0, .4); border-radius: 999px; }

/* Chatbot avatar image */
.sts-chatbot-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-lg { grid-column: span 2; grid-row: auto; }
    .process-sticky-inner { grid-template-columns: 1fr; }
    .process-visual { position: static; }
}
@media (max-width: 560px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-lg, .bento-wide { grid-column: auto; }
    .work-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. RESPONSIVE TWEAKS ----------------------------------------- */
@media (max-width: 860px) {
    .section { padding: 64px 0; }
    .main-nav > a::after, .drop-trigger::after { display: none; }
}

/* ==========================================================================
   STEP 15 — SERVICES PAGE POLISH
   Bespoke layout + micro-interactions for the Services and Service-detail
   templates. Class names unchanged; this layer only elevates the visuals.
   ========================================================================== */

/* ---- Service rows (services page) ---------------------------------------- */
.service-list { counter-reset: svc; }
.service-row {
    counter-increment: svc;
    border-radius: var(--r-lg) !important;
    transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease) !important;
}
.service-row > img { transition: transform .55s var(--ease); }

/* numbered badge sitting over the image corner */
.service-row::before {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    box-shadow: var(--shadow-green);
}

/* green hover (overrides the legacy blue) + image zoom + lift */
.service-row:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(20, 168, 0, .42) !important;
    box-shadow: 0 24px 56px rgba(20, 168, 0, .15) !important;
}
.service-row:hover > img { transform: scale(1.05); }

/* animated "Learn More" link */
.service-row .text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}
.service-row .text-link::after {
    content: "\2192";
    transition: transform .25s var(--ease);
}
.service-row:hover .text-link::after { transform: translateX(5px); }

/* ---- Process: connected 5-step timeline ---------------------------------- */
.process .process-grid { position: relative; }
.process .process-grid::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 9%;
    right: 9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green) 18%, var(--lime) 50%, var(--green) 82%, transparent);
    opacity: .35;
    z-index: 0;
}
.process .process-grid div {
    position: relative;
    z-index: 1;
    text-align: center;
}
.process .process-grid div strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    box-shadow: var(--shadow-green);
}

/* ---- Pricing: on-brand featured card ------------------------------------- */
.pricing-card.is-featured {
    border-color: rgba(20, 168, 0, .38) !important;
    box-shadow: 0 28px 72px rgba(20, 168, 0, .16) !important;
}
.pricing-card.is-featured::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: var(--r) var(--r) 0 0;
    background: linear-gradient(90deg, var(--green), var(--lime));
}

/* ---- Service-detail deliverables: subtle hover --------------------------- */
.feature-grid div {
    transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.feature-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .35);
    box-shadow: 0 18px 40px rgba(20, 168, 0, .1);
}

/* ---- Market pills: green tint (replaces legacy blue border) --------------- */
.market-pills span {
    border-color: rgba(20, 168, 0, .22) !important;
}

@media (max-width: 860px) {
    /* drop the timeline connector once the grid stacks vertically */
    .process .process-grid::before { display: none; }
}

/* ==========================================================================
   STEP 16 — DARK-HERO EYEBROW + SERVICE-DETAIL PAGE POLISH
   ========================================================================== */

/* ---- Eyebrow on the dark subhero: was green-on-green (unreadable) -------- */
.subhero.dark .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.subhero.dark .eyebrow::before { background: var(--lime); }

/* ---- Service-detail hero image: framed -------------------------------- */
.subhero .hero-grid .subhero-img {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

/* ---- Depth cards: lift on hover + rounder ----------------------------- */
.service-depth-card {
    border-radius: var(--r) !important;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-depth-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 24px 54px rgba(20, 168, 0, .12);
}

/* ---- "Method" ordered list: green numbered step badges ---------------- */
.service-depth-card ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}
.service-depth-card ol li {
    position: relative;
    counter-increment: step;
    padding-left: 42px;
    min-height: 28px;
    display: flex;
    align-items: center;
}
.service-depth-card ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
}

/* ---- Outcome callout: stronger green tint ----------------------------- */
.service-outcome {
    border-radius: var(--r) !important;
    background: linear-gradient(180deg, var(--lime-soft), #fff) !important;
    border-left: 4px solid var(--green) !important;
}

/* ---- Results stats on the detail page: hover accent ------------------- */
.results .stats-grid div {
    transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.results .stats-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .32);
    box-shadow: 0 18px 40px rgba(20, 168, 0, .1);
}

/* ==========================================================================
   STEP 17 — CASE STUDIES PAGE POLISH
   ========================================================================== */

/* ---- Results snapshot (+312% etc): hover + green top accent ----------- */
.proof-strip .case-snapshot-grid div {
    position: relative;
    overflow: hidden;
    transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.proof-strip .case-snapshot-grid div::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--lime));
    opacity: 0;
    transition: opacity .25s ease;
}
.proof-strip .case-snapshot-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 18px 40px rgba(20, 168, 0, .1);
}
.proof-strip .case-snapshot-grid div:hover::after { opacity: 1; }

/* ---- Case panels: hover lift, image zoom, green number badge ---------- */
.case-study-panel {
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.case-study-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 28px 70px rgba(20, 168, 0, .12);
}
.case-media img { transition: transform .5s var(--ease); }
.case-study-panel:hover .case-media img { transform: scale(1.04); }
.case-number {
    left: 16px !important;
    top: 16px !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark)) !important;
    color: #fff !important;
    box-shadow: var(--shadow-green) !important;
}

/* ---- Problem / Solution: tint the Solution green --------------------- */
.case-detail-grid section { border-radius: var(--r-sm) !important; }
.case-detail-grid section:nth-child(2) {
    background: linear-gradient(180deg, var(--lime-soft), #fff) !important;
    border-left: 3px solid var(--green) !important;
}

/* ---- Outcome callout: match the rest of the site -------------------- */
.case-outcome {
    border-radius: var(--r-sm) !important;
    background: linear-gradient(180deg, var(--lime-soft), #fff) !important;
    border-left: 4px solid var(--green) !important;
}

/* ---- Build-results timeline: green badges + connector --------------- */
.case-method .case-timeline { position: relative; }
.case-method .case-timeline::before {
    content: "";
    position: absolute;
    top: 47px;
    left: 9%;
    right: 9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green) 18%, var(--lime) 50%, var(--green) 82%, transparent);
    opacity: .35;
    z-index: 0;
}
.case-method .case-timeline div {
    position: relative;
    z-index: 1;
    text-align: center;
}
.case-method .case-timeline div::before {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    box-shadow: var(--shadow-green);
}

@media (max-width: 860px) {
    .case-method .case-timeline::before { display: none; }
}

/* ==========================================================================
   STEP 18 — ABOUT PAGE POLISH
   ========================================================================== */

/* ---- Team / Specialist cards: hover lift + framed images ------------- */
.founder-grid article {
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.founder-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 24px 54px rgba(20, 168, 0, .12);
}
.founder-grid article img {
    width: 100%;
    border-radius: var(--r);
    background: linear-gradient(135deg, var(--lime-soft), #fff);
    padding: 16px;
}

/* ---- "Our Values" callout: highlighted, on-brand --------------------- */
.values {
    border-radius: var(--r) !important;
    background: linear-gradient(180deg, var(--lime-soft), #fff) !important;
    border-left: 4px solid var(--green) !important;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.values:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(20, 168, 0, .12);
}

/* ==========================================================================
   STEP 19 — CONTACT PAGE POLISH
   ========================================================================== */

/* ---- Form card: the conversion focal point --------------------------- */
.contact-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg) !important;
    border-color: rgba(20, 168, 0, .18) !important;
    box-shadow: 0 30px 70px rgba(20, 168, 0, .12) !important;
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--lime));
}

/* ---- Info cards: hover lift ------------------------------------------ */
.contact-grid article {
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 22px 50px rgba(20, 168, 0, .1);
}

/* ---- "What Happens Next" steps → green numbered badges --------------- */
.contact-grid article ol {
    counter-reset: cstep;
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 14px;
    margin: 8px 0 0;
}
.contact-grid article ol li {
    position: relative;
    counter-increment: cstep;
    padding-left: 42px;
    min-height: 28px;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}
.contact-grid article ol li::before {
    content: counter(cstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
}

/* ==========================================================================
   STEP 20 — BLOG PAGE POLISH
   ========================================================================== */

/* ---- Topic nav: green pills (was blue border / amber hover) ----------- */
.topic-nav a {
    border-color: rgba(20, 168, 0, .2) !important;
    transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.topic-nav a:hover {
    border-color: rgba(20, 168, 0, .5) !important;
    color: var(--green-dark) !important;
    transform: translateY(-2px);
}

/* ---- Post signals: green (was blue) ---------------------------------- */
.post-signals span {
    background: var(--tint) !important;
    color: var(--green-dark) !important;
}

/* ---- Featured post: rounder, hover, image zoom, animated link -------- */
.featured-post {
    border-radius: var(--r-lg) !important;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.featured-post:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 30px 72px rgba(20, 168, 0, .13);
}
.featured-media {
    overflow: hidden;
    border-radius: var(--r);
}
.featured-media img { transition: transform .5s var(--ease); }
.featured-post:hover .featured-media img { transform: scale(1.04); }
.featured-post .text-link,
.topic-card .text-link,
.blog-actions .text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}
.featured-post .text-link::after,
.topic-card .text-link::after,
.blog-actions .text-link::after {
    content: "\2192";
    transition: transform .25s var(--ease);
}
.featured-post:hover .text-link::after,
.topic-card:hover .text-link::after,
.blog-card:hover .blog-actions .text-link::after { transform: translateX(5px); }

/* ---- Blog cards: hover lift + on-brand outline button ----------------- */
.blog-card {
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 168, 0, .3) !important;
}
.btn-outline {
    border-color: rgba(20, 168, 0, .4) !important;
    border-radius: 999px !important;
    color: var(--green-dark);
    font-weight: 800;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-outline:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* ---- Topic cards: hover + green top accent --------------------------- */
.topic-card {
    position: relative;
    overflow: hidden;
    transition: transform .26s var(--ease), border-color .26s var(--ease), box-shadow .26s var(--ease);
}
.topic-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--lime));
    opacity: 0;
    transition: opacity .25s ease;
}
.topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 168, 0, .3);
    box-shadow: 0 18px 40px rgba(20, 168, 0, .1);
}
.topic-card:hover::after { opacity: 1; }

/* ---- Lead-magnet band: highlighted, on-brand ------------------------- */
.lead-magnet-panel {
    border-radius: var(--r-lg) !important;
    background: linear-gradient(135deg, var(--lime-soft), #fff) !important;
    border-color: rgba(20, 168, 0, .2) !important;
}

/* ==========================================================================
   STEP 21 — SINGLE CASE STUDY PAGE
   ========================================================================== */

/* "Read full case study" link on the listing cards */
.case-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 800;
}
.case-readmore::after { content: "\2192"; transition: transform .25s var(--ease); }
.case-study-panel:hover .case-readmore::after { transform: translateX(5px); }

/* Single case study CTA band */
.case-cta-inner {
    text-align: center;
    color: #fff;
    border-radius: var(--r-lg);
    padding: 52px 32px;
    background:
        radial-gradient(circle at 12% 18%, rgba(198, 242, 78, .2), transparent 30%),
        linear-gradient(135deg, var(--green-dark) 0%, #0A0E14 75%);
    box-shadow: var(--shadow);
}
.case-cta-inner h2 { color: #fff; }
.case-cta-inner p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 10px auto 24px; }

/* Case study hero action row */
.case-single .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Keep anchor-scrolled sections clear of the fixed header */
.section[id], .subhero[id], [id="case-library"] { scroll-margin-top: 96px; }

/* ==========================================================================
   STEP 23 — CASE STUDIES LISTING: modern preview cards.
   The listing now shows a concise preview (image + title + summary + metrics
   + link); the full Problem/Solution/Delivered/Outcome live on the single
   case-study page. This fixes the image fitting and reads cleanly.
   ========================================================================== */
.case-study-list { gap: 30px; }

.case-study-panel {
    border-radius: var(--r-lg) !important;
    align-items: stretch;
    overflow: hidden;
}

/* Media: fills its side at a sensible height, never an over-cropped tall strip */
.case-media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 320px;
    background: linear-gradient(135deg, var(--lime-soft), #fff);
}
.case-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s var(--ease);
}
.case-study-panel:hover .case-media img { transform: scale(1.04); }

/* Body: vertically centred, breathing room */
.case-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 34px 36px;
}
.case-body h3 { margin: 0; }
.case-body h3 a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.case-study-panel:hover .case-body h3 a { color: var(--green-dark); }
.case-body > p { margin: 0; color: var(--muted); }
.case-metrics { margin: 2px 0; }
.case-readmore { margin-top: 4px; }

@media (min-width: 861px) {
    .case-study-panel { grid-template-columns: minmax(320px, 1fr) 1.05fr; }
    /* Alternate the image side down the list for an editorial, modern rhythm */
    .case-study-panel:nth-child(even) .case-media { order: 2; }
}
@media (max-width: 860px) {
    .case-media, .case-media img { min-height: 220px; }
    .case-body { padding: 26px 24px; }
}

/* ==========================================================================
   STEP 22 — CHATBOT: make the whole panel fit + scroll on every screen.
   Previously the panel had a capped height with overflow:hidden, so when the
   intro / "Talk to person" / lead forms appeared, their buttons were clipped
   off the bottom and unreachable. Now the panel is a flex column with one
   scrollable body, so all content + buttons are always reachable.
   ========================================================================== */
.sts-chatbot-panel {
    flex-direction: column;
    max-height: min(82vh, 680px) !important;
    overflow: hidden !important;
}
/* Only flex it open — leave the closed state's `display:none` intact so the
   close button and toggle still hide the panel. */
.sts-chatbot[data-open="true"] .sts-chatbot-panel {
    display: flex !important;
}
.sts-chatbot-header { flex: 0 0 auto; }
.sts-chatbot-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}
.sts-chatbot-body::-webkit-scrollbar { width: 8px; }
.sts-chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(11, 31, 51, .2);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
/* Messages no longer scroll on their own — the body scrolls instead, so the
   forms below messages are never clipped. */
.sts-chatbot-messages {
    max-height: none !important;
    min-height: 120px;
    overflow: visible !important;
}
@media (max-width: 780px) {
    .sts-chatbot-panel { max-height: calc(100vh - 92px) !important; }
}
