/* CSS Variables for elegant theming */
:root {
    --bg-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: var(--card-bg);
    padding: 1.5rem 10%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo a span {
    color: var(--accent-color);
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Main Content Container */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
}

/* Profile Picture Styling */
.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
}

p.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Call to Action Button */
.download-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    display: inline-block;
    margin-bottom: 3.5rem;
}

.download-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Reusable Grid & Cards (Used for instructions and pricing) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    text-align: left;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Highlighted/Emergency Card */
.card.featured {
    border-top: 4px solid #ef4444;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.badge {
    display: inline-block;
    background-color: var(--bg-color);
    color: var(--accent-color);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.card.featured .badge {
    background-color: #fef2f2;
    color: #ef4444;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.card ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card.featured ul li::before {
    color: #ef4444;
}

.tier-btn {
    text-align: center;
    display: block;
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--accent-color);
    margin-top: auto;
}

.tier-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.card.featured .tier-btn {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

.card.featured .tier-btn:hover {
    background-color: #dc2626;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
}