/* Tabela-inspired Design for ScaleNest */

:root {
    --bg-page: #F0F0ED; /* The signature Beige/Greige */
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --accent-yellow: #D4F400; /* Lime/Neon Yellow */
    --accent-dark: #1A1A1A;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-pill: 100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    padding: 20px;
}

/* --- Header --- */
.tb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto 40px auto;
}

.tb-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-nav {
    display: flex;
    gap: 30px;
}

.tb-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.tb-nav a:hover {
    opacity: 0.7;
}

.tb-actions {
    display: flex;
    gap: 12px;
}

.tb-btn {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tb-btn:hover {
    transform: translateY(-2px);
}

.tb-btn-primary {
    background-color: var(--accent-dark);
    color: white;
}

.tb-btn-secondary {
    background-color: var(--accent-yellow);
    color: var(--accent-dark);
}

/* --- Hero Section --- */
.tb-hero-container {
    background-color: #EAEAE7; /* Slightly darker shade for the main card area */
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.tb-hero-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.tb-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}

/* Hand-drawn circle imitation */
.tb-scribble-circle {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.tb-scribble-circle::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border: 3px solid var(--accent-yellow);
    border-radius: 60% 40% 50% 70% / 60% 50% 60% 40%;
    z-index: -1;
    transform: rotate(-2deg);
    animation: pulse 4s ease-in-out infinite; /* Pulse ONLY the circle */
}

/* ... */

.tb-receipt {
    background: white;
    color: #333;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    width: 100%;
    position: relative;
    /* Zigzag bottom */
    -webkit-mask-image: radial-gradient(circle at 10px bottom, transparent 10px, black 11px);
    mask-image: radial-gradient(circle at 10px bottom, transparent 10px, black 11px);
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    -webkit-mask-position: bottom;
    mask-position: bottom;
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    padding-bottom: 30px;
}

.tb-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Bento Grid --- */
.tb-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tb-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    overflow: hidden; /* For images/decorations */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Specific Card Layouts based on Image */
/* Card 1: Large Empty/Visual (Top Left) */
.tb-card-1 {
    grid-column: span 1;
    justify-content: center;
    align-items: center;
}

/* Card 2: Waiters/List (Top Middle-Left) - Wide */
.tb-card-2 {
    grid-column: span 2;
}

/* Card 3: Receipt/Dark (Top Right) */
.tb-card-3 {
    grid-column: span 1;
    background-color: #333;
    color: white;
}

/* Card 4: Dark/Order (Bottom Left) */
.tb-card-4 {
    grid-column: span 1;
    background-color: #333;
    color: white;
}

/* Card 5: Reserved/Visual (Bottom Middle) */
.tb-card-5 {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card 6: Dashboard (Bottom Right) - Wide */
.tb-card-6 {
    grid-column: span 2;
    background-color: #111; /* Dark dashboard theme */
    color: white;
}


/* Elements inside cards */
.tb-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tb-card-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* Mock UI Elements */
.tb-mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tb-mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eee;
}

.tb-wrapper-row {
     display: flex; 
     gap: 10px; 
     align-items: center;
}

/* Floating Badges */
.tb-float-badge {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.tb-float-badge.yellow {
    color: #D4F400; /* Text highlight */
}

/* Receipt Style */
.tb-receipt {
    background: white;
    color: #333;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    width: 100%;
    position: relative;
    /* Zigzag bottom */
    mask-image: radial-gradient(circle at 10px bottom, transparent 10px, black 11px);
    mask-size: 20px 20px;
    mask-position: bottom;
    mask-repeat: repeat-x;
    padding-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tb-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tb-card-1 { grid-column: span 1; }
    .tb-card-2 { grid-column: span 2; }
    .tb-card-3 { grid-column: span 1; }
    .tb-card-4 { grid-column: span 1; }
    .tb-card-5 { grid-column: span 1; }
    .tb-card-6 { grid-column: span 2; }
}

@media (max-width: 768px) {
    .tb-hero-title { font-size: 2.5rem; }
    .tb-bento-grid { display: flex; flex-direction: column; }
    .tb-header { flex-direction: column; gap: 20px; }
    .tb-nav { display: none; } /* Simplified for now */
}

/* --- Features Section --- */
.tb-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.tb-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tb-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tb-feature-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}

.tb-feature-item:hover {
    transform: translateY(-5px);
}

.tb-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-page);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* --- Pricing Section --- */
.tb-pricing-toggle-container {
    background: #EAEAE7;
    display: inline-flex;
    padding: 6px;
    border-radius: var(--radius-pill);
    margin-bottom: 40px;
    position: relative;
}

.tb-pricing-btn {
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.tb-pricing-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tb-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tb-pricing-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.tb-pricing-card:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-8px);
}

.tb-pricing-card.popular {
    background: #1A1A1A;
    color: white;
}

.tb-pricing-card.popular .tb-price-amount {
    color: var(--accent-yellow);
}

.tb-pricing-card.popular .tb-feature-check {
    color: var(--accent-yellow);
}

.tb-pricing-card.popular .tb-plan-subtitle {
    color: #888;
}

.tb-plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tb-plan-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.tb-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.tb-price-period {
    font-size: 0.9rem;
    opacity: 0.6;
}

.tb-plan-feat-list {
    list-style: none;
    margin: 30px 0;
}

.tb-plan-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.tb-feature-check {
    color: var(--accent-dark);
    font-size: 1.1rem;
}

.tb-btn-plan {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-pill);
    border: 2px solid #eee;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tb-btn-plan:hover {
    border-color: var(--accent-dark);
    background: var(--bg-page);
}

.tb-pricing-card.popular .tb-btn-plan {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--accent-dark);
}

.tb-pricing-card.popular .tb-btn-plan:hover {
    background: white;
}

/* --- Footer --- */
.tb-footer {
    background: white;
    padding: 80px 40px;
    margin-top: 100px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.tb-footer-col h4 {
    margin-bottom: 20px;
}

.tb-footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.tb-footer-col a:hover {
    color: var(--text-main);
}

@media (max-width: 900px) {
    .tb-pricing-cards {
        grid-template-columns: 1fr;
    }

    .tb-feature-grid {
        grid-template-columns: 1fr;
    }

    .tb-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
        .tb-steps-grid {
            grid-template-columns: 1fr;
        }
        }
    
        /* --- How It Works --- */
        .tb-steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-top: 40px;
        }
    
        .tb-step-card {
            background: white;
            padding: 30px;
            border-radius: var(--radius-md);
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
    
        .tb-step-badge {
            background: var(--accent-yellow);
            color: var(--accent-dark);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 20px;
        }
    
        /* --- Trust Section --- */
        .tb-trust-section {
            text-align: center;
            margin-bottom: 80px;
            padding: 0 20px;
        }
    
        .tb-trust-title {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 30px;
            font-weight: 600;
        }
    
        .tb-trust-logos {
            display: flex;
            justify-content: center;
            gap: 60px;
            flex-wrap: wrap;
            opacity: 0.5;
            filter: grayscale(100%);
        }
    
        .tb-trust-logo {
            font-weight: 700;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
    
        /* --- Animations --- */
.tb-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
.tb-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tb-float-anim {
    animation: float 6s ease-in-out infinite;
}

.tb-pulse-slow {
    animation: pulse 4s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}
@keyframes fadeIn {
    from {
            opacity: 0;
            transform: translateY(10px);
        }
    
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}