/* ===== Base ===== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-b: 1px solid rgba(0, 0, 0, 0.05);
}
.gradient-text {
    background: linear-gradient(90deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== Navigation ===== */
/* Mobile nav overlay — menu floats over page, does not push content down */
@media (max-width: 767px) {
    #nav-mobile-backdrop {
        position: fixed;
        top: var(--site-nav-height, 4rem);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        background: rgba(15, 23, 42, 0.45);
    }

    #nav-mobile-menu {
        position: fixed;
        top: var(--site-nav-height, 4rem);
        left: 0;
        right: 0;
        z-index: 45;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.15);
    }

    body.nav-menu-open {
        overflow: hidden;
    }
}

/* ===== Forms ===== */
/* Match Tailwind form inputs: px-5 py-4 bg-slate-50 border border-slate-200 rounded-2xl text-lg focus:ring-emerald-500 */
.address-field-wrap {
    overflow: visible;
}

.address-autocomplete-host {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 30;
}

.address-autocomplete-host gmp-place-autocomplete {
    width: 100%;
    display: block;
    box-sizing: border-box;
    color-scheme: light;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #0f172a;
    min-height: 3.625rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.address-autocomplete-host gmp-place-autocomplete:focus-within {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

/* Legacy Autocomplete fallback dropdown */
.pac-container {
    z-index: 10050 !important;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
    margin-top: 0.35rem;
    font-family: inherit;
    font-size: 1.125rem;
}

.pac-item {
    padding: 0.75rem 1.25rem;
    line-height: 1.35;
    cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
    background-color: #ecfdf5;
}

/* ===== Pricing ===== */
/* Mobile: peek carousel; desktop: 3-column plan cards */
.pricing-mobile-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0 1rem;
}
@media (min-width: 1024px) {
    .pricing-mobile-carousel-viewport {
        overflow: visible;
        padding: 0;
    }
}
.pricing-mobile-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
@media (min-width: 1024px) {
    .pricing-mobile-track {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(5, auto);
        column-gap: 1.5rem;
        row-gap: 1.25rem;
        transform: none !important;
        will-change: auto;
        align-items: stretch;
    }
}
.pricing-plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .pricing-plan-card {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 5;
        height: auto;
    }
}
.pricing-mobile-card {
    flex: 0 0 auto;
    width: min(calc(100vw - 2rem), 22rem);
    opacity: 0.5;
    transform: scale(0.94);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}
@media (min-width: 1024px) {
    .pricing-mobile-card {
        width: auto;
        opacity: 1;
        transform: none;
        cursor: default;
    }
}
.pricing-mobile-card.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.pricing-mobile-card.is-active.pricing-plan--active,
.pricing-plan-card.pricing-plan--active {
    border: 2px solid #10b981;
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.55) 0%, #ffffff 30%);
    box-shadow: 0 16px 36px -12px rgba(16, 185, 129, 0.25);
}
@media (min-width: 1024px) {
    .pricing-plan-card.pricing-plan--active {
        box-shadow: inset 0 0 0 2px #10b981, 0 12px 30px -12px rgba(16, 185, 129, 0.22), 0 8px 20px -10px rgba(15, 23, 42, 0.08);
    }
}
.pricing-mobile-card:not(.is-active) {
    cursor: pointer;
}
.pricing-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
@media (min-width: 1024px) {
    .pricing-card-header {
        margin-bottom: 0;
        padding-bottom: 1rem;
    }
}
.pricing-card-banner-slot {
    width: 100%;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.pricing-card-title {
    margin: 0;
    line-height: 1.25;
}
.pricing-card-badge-slot {
    width: 100%;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
}
.pricing-card-section {
    margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
    .pricing-card-section {
        margin-bottom: 0;
    }
}
.pricing-card-label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
    .pricing-card-label {
        font-size: 1rem;
    }
}
.pricing-card-plus {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.pricing-card-dl {
    margin: 0;
}
.pricing-card-dl-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.4;
}
.pricing-card-dl-row dt {
    font-weight: 600;
    color: #0f172a;
}
.pricing-card-dl-row dd {
    margin: 0;
    text-align: right;
    color: #475569;
}
.pricing-feature-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.5;
}
.pricing-feature-list li {
    margin-bottom: 0.5rem;
}
.pricing-feature-list li:last-child {
    margin-bottom: 0;
}
.pricing-card-footnotes {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #64748b;
}
@media (min-width: 1024px) {
    .pricing-card-footnotes {
        margin-top: 0;
        font-size: 1rem;
    }
}
.pricing-card-footnotes p {
    margin: 0 0 0.5rem;
}
.pricing-card-footnotes p:last-child {
    margin-bottom: 0;
}
.pricing-card-cta {
    margin-top: 1.25rem;
}
@media (min-width: 1024px) {
    .pricing-card-cta {
        margin-top: 0;
        align-self: end;
    }
}
.pricing-card-cta a {
    width: 100%;
    display: block;
    text-align: center;
}
.pricing-tier-banner {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    background: #059669;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}
.pricing-addon {
    margin-top: 1.5rem;
}
@media (min-width: 1024px) {
    .pricing-addon {
        margin-top: 2rem;
    }
}
.pricing-addon-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #ffffff 100%);
}
@media (min-width: 768px) {
    .pricing-addon-inner {
        gap: 1.25rem;
        padding: 1.5rem 1.75rem;
        align-items: center;
    }
}
.pricing-addon-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.pricing-addon-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
@media (min-width: 1024px) {
    .pricing-addon-eyebrow {
        font-size: 0.8125rem;
    }
}
.pricing-addon-title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}
@media (min-width: 1024px) {
    .pricing-addon-title {
        font-size: 1.25rem;
    }
}
.pricing-addon-price {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}
@media (min-width: 1024px) {
    .pricing-addon-price {
        font-size: 1.125rem;
    }
}
.pricing-addon-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #64748b;
}
@media (min-width: 1024px) {
    .pricing-addon-desc {
        font-size: 1rem;
    }
}
.pricing-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: background 0.2s, transform 0.2s;
}
.pricing-dot.is-active {
    background: #059669;
    transform: scale(1.25);
}
.pricing-dot:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .pricing-mobile-track,
    .pricing-mobile-card,
    .pricing-dot {
        transition: none;
    }
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 20;
    bottom: 125%;
    left: 50%;
    margin-left: -130px;
    opacity: 0;
    transition: opacity 0.3s;
    line-height: 1.2rem;
    font-weight: normal;
    text-transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== Mobile ===== */
/* Mobile: lock horizontal scroll; downsize largest type two steps (text-lg and below unchanged) */
html {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
    position: relative;
}

@media (max-width: 767px) {
    /* Largest headings — two steps smaller than desktop */
    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }

    .text-3xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }

    .text-4xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }

    .text-5xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }

    .text-6xl {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }

    .text-7xl {
        font-size: 3rem !important;
        line-height: 1 !important;
    }

    .text-8xl {
        font-size: 3.75rem !important;
        line-height: 1 !important;
    }

    /* Contain page width */
    nav,
    header,
    main,
    footer,
    section {
        max-width: 100%;
        overflow-x: clip;
    }

    .max-w-7xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl,
    .max-w-xl {
        max-width: 100%;
    }

    /* Forms / address widget */
    .overflow-visible {
        overflow-x: clip !important;
    }

    .address-field-wrap,
    .address-autocomplete-host {
        max-width: 100%;
        overflow-x: clip;
    }

    /* Pricing carousel must not widen the page */
    #pricing,
    #pricing-matrix,
    #pricing-mobile,
    #pricing-addon,
    .pricing-mobile-carousel-viewport {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .pricing-mobile-carousel-viewport {
        overflow: hidden;
    }

    .pricing-mobile-track {
        max-width: none;
    }

    /* Long headings / buttons */
    h1,
    h2,
    h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    a,
    button {
        max-width: 100%;
    }

    #site-nav {
        overflow-x: visible;
        overflow-y: visible;
    }
}

/* ===== Locale switcher ===== */
#locale-switcher {
    display: flex;
    align-items: center;
}

.locale-select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8 1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.locale-select:hover {
    border-color: #10b981;
}

.locale-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

@media (max-width: 767px) {
    .locale-select {
        font-size: 0.625rem;
        padding: 0.2rem 1.5rem 0.2rem 0.4rem;
    }
}
