:root {
    --bg-color: #edf2f7;
    --text-main: #1f2933;
    --text-dark: #111827;
    --primary: #16a34a;
    --primary-hover: #15803d;
    --card-bg: #ffffff;
    --border: #d1d5db;
    --muted: #6b7280;
    --surface: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}
nav a:hover { color: var(--primary); }
.nav-brand { font-weight: bold; color: var(--text-dark); font-size: 1.2rem; margin-left: 0; }

/* Header */
header {
    background: linear-gradient(180deg, #0f172a 0%, #19293d 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
header h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
header p { color: #cbd5e1; font-size: 1.05rem; max-width: 680px; margin: 0 auto; }

/* Main Content */
.container {
    max-width: 1040px;
    margin: 3rem auto;
    padding: 0 2rem 2rem;
}

.payment-switcher {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.toggle-btn {
    border: 1px solid var(--border);
    background: white;
    color: var(--text-dark);
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.toggle-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

h2 { color: var(--text-dark); margin-bottom: 1.5rem; font-size: 1.8rem; }

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}
.tier-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.tier-card.popular {
    border-color: rgba(22, 163, 74, 0.35);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.tier-card h3 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 1rem; }
.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.tier-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 2rem; min-height: 68px; }

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 0.95rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Policy Pages */
.policy-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.policy-content h3 { margin: 2rem 0 1rem 0; color: var(--text-dark); }
.policy-content p { margin-bottom: 1rem; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    background: white;
}
.tier-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}
.tier-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.tier-card.popular { border: 2px solid var(--primary); }
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.tier-card h3 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 1rem; }
.price { font-size: 2.5rem; font-weight: bold; color: var(--text-dark); margin-bottom: 1rem; }
.price span { font-size: 1rem; color: #64748b; font-weight: normal; }
.tier-card p { font-size: 0.95rem; color: #64748b; margin-bottom: 2rem; min-height: 60px; }

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}
.btn:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* Policy Pages */
.policy-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.policy-content h3 { margin: 2rem 0 1rem 0; color: var(--text-dark); }
.policy-content p { margin-bottom: 1rem; }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}