/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fbf9; /* Soft off-white */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: #2d5a27; /* Deep forest green */
    color: #fff;
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 4rem 20px;
    max-width: 1100px;
    margin: auto;
}

.hero-text { flex: 1; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 10px; }

.btn {
    display: inline-block;
    background: #e67e22; /* Carrot orange */
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* Features Grid */
.features {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 30px;
}

.card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

/* Form Styling */
.signup-section {
    padding: 4rem 20px;
    background: #f2f2f2;
    text-align: center;
}

form {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 8px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
}

input[type="submit"] {
    background: #2d5a27;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
}

/* Box Grid Layout */
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0 80px;
}

/* Subscription Card Styling */
.box-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.box-card.popular {
    border: 2px solid var(--accent-harvest);
    transform: scale(1.05);
}

.box-image {
    position: relative;
    height: 200px;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1); /* Matching the color grade */
}

/* Price & Badge UI */
.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-slate);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-harvest);
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
}

/* Content Area */
.box-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.box-content h3 {
    color: var(--primary-slate);
    margin-bottom: 10px;
}

.contents {
    font-style: italic;
    color: var(--accent-harvest);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Action Button */
.btn-box {
    display: block;
    background: var(--primary-slate);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-box:hover {
    background: var(--accent-harvest);
    transform: translateY(-2px);
}

/* Table Section Styling */
.table-wrapper {
    overflow-x: auto; /* Makes it scrollable on mobile */
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 80px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.styled-table thead tr {
    background-color: var(--primary-slate);
    color: #ffffff;
    text-align: left;
}

.styled-table th, 
.styled-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eeeeee;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-harvest);
}

.styled-table tbody tr:hover {
    background-color: #f9f9f9;
}

.styled-table td strong {
    color: var(--primary-slate);
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .styled-table {
        font-size: 0.85rem;
    }
    .styled-table th, .styled-table td {
        padding: 12px 10px;
    }
}