:root {
    --bg-base: #fef6ee;
    --bg-surface: #ffffff;
    --bg-surface-light: #fff7f0;

    --text-main: #292524;
    --text-muted: #78716c;

    --accent-primary: #ef8b49;
    --accent-secondary: #eb6c24;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --success: #eb6c24;
    --danger: #ef4444;

    --border-color: rgba(120, 113, 108, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(235, 108, 36, 0.2);

    --card-radius: 16px;
    --anim-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- Background Orbs --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(239, 139, 73, 0.7) 0%, transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.6) 0%, transparent 70%);
    opacity: 0.16;
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 201, 52, 0.5) 0%, transparent 70%);
    opacity: 0.14;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.brand-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: min(320px, 80vw);
    height: auto;
    padding: 0.9rem 1.25rem;
    background: #292524;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(68, 64, 60, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-text {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Pricing Cards Section --- */
.pricing-cards-section {
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform var(--anim-speed) ease, box-shadow var(--anim-speed) ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 28px rgba(120, 113, 108, 0.18);
    border-color: rgba(235, 108, 36, 0.35);
}

.pricing-card.popular {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(239, 139, 73, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 0 24px rgba(239, 139, 73, 0.22);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card.premium {
    border-color: #ff6a00;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tenant-type {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(239, 139, 73, 0.14);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
}

.card-pricing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    /* Push to the absolute bottom of the card */
}

.pricing-note {
    text-align: center;
    color: #eb6c24;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -2.5rem;
    margin-bottom: 1.25rem;
}

/* --- Search Bar Container --- */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2px;
    transition: all var(--anim-speed);
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(239, 139, 73, 0.24);
    background: var(--bg-surface);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    padding: 0.85rem 1rem 0.85rem 3rem;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* --- No Results State --- */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.no-results.hidden {
    display: none !important;
}

.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-item.highlight {
    background: linear-gradient(180deg, rgba(239, 139, 73, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(235, 108, 36, 0.35);
    min-height: 112px;
    /* Added min height so cards align regardless of extra remarks */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-item .label {
    font-size: 0.85rem;
    color: #eb6c24;
    font-weight: 600;
}

.price-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6a00;
}

.price-item .value.text-small {
    font-size: 1.15rem;
}

.yearly-price {
    font-size: 0.85rem;
    color: #78716c;
    margin-top: 0.25rem;
}

/* --- Feature Matrix Table --- */
.feature-matrix-card {
    background: var(--bg-surface);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(120, 113, 108, 0.15);
}

.matrix-header-container {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(120, 113, 108, 0.12);
}

.matrix-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.grid-header {
    font-weight: 600;
    color: var(--text-main);
}

.grid-header .col-plan {
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
}

.grid-header .col-plan span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.col-feature {
    flex: 0 0 35%;
    padding-right: 1rem;
}

.col-plan {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix-category {
    background: var(--bg-surface-light);
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.matrix-category:hover {
    background: rgba(239, 139, 73, 0.08);
}

.category-title {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    transition: transform var(--anim-speed) ease;
    font-size: 0.9rem;
}

.feature-group {
    display: none;
}

.feature-group.open {
    display: block;
    animation: fadeIn var(--anim-speed) ease;
}

.feature-row {
    transition: background var(--anim-speed);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row:hover {
    background: rgba(239, 139, 73, 0.05);
}

.feature-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-yes {
    color: var(--success);
    font-size: 1.2rem;
}

.icon-no {
    color: rgba(15, 23, 42, 0.2);
    font-size: 1rem;
}

.text-limit {
    font-size: 0.85rem;
    color: #9a3412;
    background: rgba(239, 139, 73, 0.14);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.plan-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 1.2rem;
}

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    cursor: help;
    font-size: 0.85rem;
    width: 1rem;
    height: 1rem;
}

.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    max-width: 280px;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #292524;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 400;
    white-space: normal;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 6px;
    border-style: solid;
    border-color: #292524 transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.info-tooltip:hover::after,
.info-tooltip:hover::before,
.info-tooltip:focus-visible::after,
.info-tooltip:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    .gradient-text {
        font-size: 2.25rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .col-feature {
        flex: 0 0 40%;
        font-size: 0.85rem;
    }

    .matrix-row {
        padding: 0.75rem 0.5rem;
    }

    .grid-header .col-plan {
        font-size: 0.85rem;
    }

    .text-limit {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    .col-feature {
        flex: 0 0 35%;
        font-size: 0.75rem;
    }

    .icon-yes {
        font-size: 1rem;
    }
}