/* Utility classes missing from the precompiled hamster theme bundle (theme-CqI_9lrl.css).
   That file only contains classes hamster's original template pages happened to use —
   it is NOT a live Tailwind compiler, so any new class combination must be added here. */

.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Pricing — bigger price number + monthly/yearly billing toggle */
.mitso-price {
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
}
.mitso-price-card.highlight .mitso-price { color: #fff; }
.mitso-compare {
    font-size: 22px;
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.4;
    margin-left: 8px;
}
.mitso-yearly-note {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.7;
    min-height: 1em;
}
.mitso-billing-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.mitso-billing-toggle {
    display: inline-flex;
    align-items: center;
    background: #eef1f6;
    border-radius: 999px;
    padding: 4px;
}
.mitso-billing-toggle button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}
.mitso-billing-toggle button.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.mitso-billing-save {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

/* AI Agents section — segmented toggle, custom click-toggle JS (not Preline's
   data-hs-tab) since Preline's tab JS has been unreliable elsewhere on this site. */
.mitso-ai-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}
.mitso-ai-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}
.mitso-ai-tab-btn:hover {
    color: #fff;
}
.mitso-ai-panels {
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mitso-ai-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
}
/* Panels appear with a quick, unobtrusive fade — the typewriter heading is
   what carries the eye during a tab switch. */
.mitso-ai-tab-panel.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s;
    pointer-events: auto;
}
/* Typewriter heading — blinking caret while typing, reserved height so the
   layout doesn't jump as characters fill in. */
.mitso-type-heading {
    min-height: 2.2em;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
}
.mitso-type-heading.typing::after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 0.95em;
    background: currentColor;
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: mitso-caret 0.7s steps(1) infinite;
}
@keyframes mitso-caret {
    50% { opacity: 0; }
}
.mitso-ai-tab-btn.active {
    background: #2468ff;
    color: #fff;
}

/* Chat mockup — dark theme to blend with the dark AI Agents section */
.mitso-chat-mock {
    background: #1a2233;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.mitso-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.mitso-chat-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mitso-msg {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 82%;
    padding-top: 14px;
}
.mitso-msg-in {
    align-self: flex-start;
    align-items: flex-start;
}
.mitso-msg-out {
    align-self: flex-end;
    align-items: flex-end;
}
.mitso-msg-name {
    position: absolute;
    top: 0;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}
.mitso-msg-in .mitso-msg-name {
    left: 4px;
}
.mitso-msg-out .mitso-msg-name {
    right: 4px;
}
.mitso-bubble {
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.5;
    position: relative;
}
.mitso-bubble-in {
    background: #3a4459;
    color: #eef1f6;
    border-bottom-left-radius: 4px;
}
.mitso-bubble-out {
    background: #3b6fd4;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}
.mitso-msg-time {
    display: block;
    font-size: 10.5px;
    margin-top: 5px;
    opacity: 0.5;
    text-align: right;
}
.mitso-route-note {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 999px;
}
.mitso-route-note strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

/* Copilot composer — AI-drafted reply awaiting agent approval */
.mitso-composer {
    margin: 4px 14px 16px;
    border: 1.5px solid #3b6fd4;
    border-radius: 12px;
    background: #202a3d;
    overflow: hidden;
}
.mitso-composer-text {
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #eef1f6;
}
.mitso-composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mitso-composer-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.45);
}
.mitso-composer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mitso-composer-discard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}
.mitso-composer-accept {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    background: #1a8f5a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

/* Reserve scrollbar gutter so opening the Products dropdown doesn't shift/scroll the page */
html { scrollbar-gutter: stable; }

.min-w-70 { min-width: 17.5rem; }
.hs-dropdown-open\:opacity-100.hs-dropdown-open { opacity: 1; }
.hs-dropdown.hs-dropdown-open > .hs-dropdown-menu.hs-dropdown-open\:opacity-100 { opacity: 1; }

/* Mobile slide-out menu: opens from the right, matches site styling.
   Note: uses `right` instead of transform:translateX because the hamster
   theme's `.transform` utility class overwrites the `transform` property
   with only rotate/skew custom properties, silently discarding any
   translateX we set — so position-based animation is used instead. */
.mitso-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 100%;
    max-width: 20rem;
    height: 100%;
    background: #fff;
    z-index: 70;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}
.mitso-mobile-menu.open {
    right: 0;
}
#mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile menu content styling */
.mitso-mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mitso-mobile-link {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    border-bottom: 1px solid #f1f2f4;
    text-decoration: none;
}
.mitso-mobile-link:hover {
    color: #2468ff;
}
.mitso-mobile-section {
    border-bottom: 1px solid #f1f2f4;
}
.mitso-mobile-products-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;
}
.mitso-mobile-products-toggle i {
    transition: transform 0.2s ease;
}
.mitso-mobile-products-toggle.open i {
    transform: rotate(180deg);
}
.mitso-mobile-products-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.mitso-mobile-products-panel.open {
    max-height: 200px;
}
.mitso-mobile-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
}
.mitso-mobile-product-link:hover {
    background: #f4f7ff;
}
.mitso-mobile-product-link i {
    color: #2468ff;
    flex-shrink: 0;
}
.mitso-mobile-product-link strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}
.mitso-mobile-product-link small {
    display: block;
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 400;
}
.mitso-mobile-divider {
    height: 1px;
    background: #f1f2f4;
    margin: 8px 0;
}
.mitso-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.mitso-mobile-btn-primary, .mitso-mobile-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.mitso-mobile-btn-primary {
    background: #2468ff;
    color: #fff;
}
.mitso-mobile-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: transparent;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}
.mitso-mobile-btn-secondary {
    background: #f4f7ff;
    color: #2468ff;
}
