/* Reset & Base Styles */
:root {
    --primary: #d43d26;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #000000;
    --border: #e4e4e7;
    --muted: #71717a;
    --font-sans: "Inter", sans-serif;
    --font-display: "Oswald", sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.text-primary { color: var(--primary); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .header-content { justify-content: space-between; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding-top: 6rem; /* Header height + spacing */
    padding-bottom: 5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem auto;
    animation: slideUp 0.7s ease-out;
}

.badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    gap: 1rem; /* Reduced gap to fit on smaller screens */
    max-width: 80rem; /* Increased max-width */
    margin: 0 auto;
    align-items: start;
    animation: slideUp 1s ease-out 0.2s backwards;
    /* Force 3 columns on screens larger than mobile */
    grid-template-columns: repeat(3, 1fr); 
}

/* On very small mobile screens, stack them, but keep side-by-side for most */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr; /* Stack on mobile phones */
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .plans-grid { 
        gap: 2rem; /* Restore larger gap on desktop */
    }
}

/* Plan Card */
.plan-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: black;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,1);
}

.plan-card.highlight {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 8px 8px 0px 0px rgba(212,61,38,0.3);
    transform: scale(1.05);
    z-index: 10;
}

@media (min-width: 1024px) {
    .plan-card.highlight { margin-top: -1rem; }
}

.highlight-badge {
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.highlight-badge::after {
    content: "Most Recommended";
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(228, 228, 231, 0.5);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.plan-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.card-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: bold;
}

.period {
    margin-left: 0.5rem;
    color: var(--muted);
    font-weight: 500;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    color: black;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.check-icon.highlight-check {
    background-color: rgba(212, 61, 38, 0.1);
    color: var(--primary);
}

.card-footer {
    padding: 0 1.5rem 2rem 1.5rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-black {
    background-color: black;
    color: white;
}

.btn-black:hover {
    background-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: black;
    box-shadow: none;
}

/* Footer Info */
.footer-info {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-info a {
    color: var(--primary);
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: black;
    color: white;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo-icon.small {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
}

.logo-text.small {
    font-size: 0.875rem;
}

.copyright {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
