/* ───── Base ───── */
body { -webkit-font-smoothing: antialiased; }

.clay-texture {
    background-color: #f8faf8;
    background-image:
        radial-gradient(at 20% 0%, rgba(34, 83, 56, 0.04) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(163, 60, 37, 0.04) 0px, transparent 50%);
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* ───── Pulse / float ───── */
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.pulse-soft { animation: pulse-soft 2s infinite; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ───── Fade in ───── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ───── Phone mockup ───── */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: #0b0d0c;
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 50px 100px -20px rgba(15, 58, 38, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
    position: relative;
    flex-shrink: 0;
}
.phone-mockup .notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #0b0d0c;
    border-radius: 999px;
    z-index: 5;
}
.phone-mockup .screen {
    width: 100%;
    height: 100%;
    background: #f8faf8;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone-mockup .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #0b0d0c;
    font-family: 'Lexend', sans-serif;
}
.phone-mockup .status-bar .status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}
.phone-mockup .screen-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    position: relative;
}
.phone-mockup .screen-body::-webkit-scrollbar { display: none; }
.phone-mockup .app-screen { padding: 0 16px; }

.phone-mockup--sm {
    width: 220px;
    height: 460px;
    border-radius: 34px;
    padding: 7px;
}
.phone-mockup--sm .screen { border-radius: 27px; }
.phone-mockup--sm .notch { top: 14px; width: 70px; height: 16px; }
.phone-mockup--sm .status-bar { padding: 8px 16px 2px; font-size: 9px; }
.phone-mockup--sm .app-screen { padding: 0 11px; }

@media (max-width: 640px) {
    .phone-mockup { width: 240px; height: 500px; }
}

/* Bottom nav */
.bottom-nav {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 8px 6px 12px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #9ca3af;
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
}
.bottom-nav button .label {
    font-size: 8px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
}
.bottom-nav button.active { color: #225338; }
.bottom-nav .mi-fill { font-variation-settings: 'FILL' 1; }

/* ───── Slot grid ───── */
.slot-free {
    background: #EDFAF3;
    color: #1F4A38;
    border: 1px solid rgba(31, 74, 56, 0.15);
}
.slot-busy {
    background: #f3f4f6;
    color: #9ca3af;
    text-decoration: line-through;
}
.slot-active {
    background: #225338;
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(34, 83, 56, 0.4);
}
.slot-mine {
    background: #FDEBE7;
    color: #A33C25;
    border: 1px solid rgba(163, 60, 37, 0.2);
}

/* ───── Date strip ───── */
.date-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.date-pill {
    flex-shrink: 0;
    width: 36px;
    padding: 6px 0;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.date-pill .dow {
    font-size: 8px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Lexend', sans-serif;
}
.date-pill .dom {
    font-size: 13px;
    font-weight: 800;
    color: #1F4A38;
    font-family: 'Epilogue', sans-serif;
    line-height: 1;
    margin-top: 2px;
}
.date-pill.active { background: #225338; border-color: #225338; }
.date-pill.active .dow { color: rgba(255,255,255,0.7); }
.date-pill.active .dom { color: #fff; }

/* ───── Showcase tabs ───── */
.feature-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}
.feature-tab .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Epilogue', sans-serif;
}
.feature-tab:hover { border-color: rgba(34, 83, 56, 0.3); color: #225338; }
.feature-tab.active {
    background: #225338;
    border-color: #225338;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(34, 83, 56, 0.5);
}
.feature-tab.active .num { background: rgba(255,255,255,0.18); color: #fff; }

.tab-panel { animation: panelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.tab-panel:not(.active) { display: none !important; }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ───── Tablet frame (admin) ───── */
.tablet-frame {
    background: #0b0d0c;
    border-radius: 18px;
    padding: 8px;
    box-shadow:
        0 50px 100px -20px rgba(15, 58, 38, 0.3),
        0 30px 60px -30px rgba(0, 0, 0, 0.4);
}
.tablet-frame .screen { background: #fff; border-radius: 12px; overflow: hidden; }
.tablet-frame .chrome {
    background: #f3f4f6;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tablet-frame .dot { width: 11px; height: 11px; border-radius: 50%; }

/* ───── Occupancy bar ───── */
.occ-bar { width: 100%; height: 8px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.occ-bar > span { display: block; height: 100%; border-radius: 999px; }

/* ───── Contact form ───── */
.contact-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
}
.contact-type-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.contact-type-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}
.contact-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.contact-input:focus {
    outline: none;
    border-color: #dfff00;
    background: rgba(255, 255, 255, 0.15);
}
.contact-input option { color: #191c1b; background: white; }

.contact-field-animated {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}
.contact-field-hidden {
    opacity: 0;
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

/* ───── Pricing slider ───── */
.pricing-card {
    background: #fff;
    border: 2px solid rgba(34, 83, 56, 0.15);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow:
        0 25px 60px -15px rgba(34, 83, 56, 0.1),
        0 10px 20px -10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s;
}
.pricing-card:hover {
    border-color: rgba(34, 83, 56, 0.3);
}

.pricing-price-value {
    font-family: 'Epilogue', sans-serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    color: #14532d;
    transition: transform 0.15s ease;
}
.pricing-price-value.bump {
    transform: scale(1.06);
}

/* Range slider custom styling */
.pricing-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, #225338 20%, #e1e3e1 20%);
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}
.pricing-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #225338;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(34, 83, 56, 0.35), 0 0 0 1px rgba(34, 83, 56, 0.1);
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.15s;
}
.pricing-range::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 16px rgba(34, 83, 56, 0.5), 0 0 0 1px rgba(34, 83, 56, 0.2);
    transform: scale(1.1);
}
.pricing-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}
.pricing-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #225338;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(34, 83, 56, 0.35);
    cursor: grab;
}
.pricing-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #e1e3e1;
}
.pricing-range::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #225338;
}

/* Court count input */
.pricing-court-input {
    width: 72px;
    height: 52px;
    border: 2px solid rgba(34, 83, 56, 0.2);
    border-radius: 14px;
    text-align: center;
    font-family: 'Epilogue', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #14532d;
    background: #f8faf8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.pricing-court-input::-webkit-inner-spin-button,
.pricing-court-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pricing-court-input:focus {
    border-color: #225338;
    box-shadow: 0 0 0 3px rgba(34, 83, 56, 0.12);
}

/* Features grid */
.pricing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}
@media (max-width: 640px) {
    .pricing-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .pricing-price-value {
        font-size: 56px;
    }
    .pricing-card {
        padding: 28px 20px;
    }
}
