/* === 1. DESIGN SYSTEM & GLOBAL STYLES === */
:root {
    /* Colors */
    --color-bg: #fdfdfd;
    /* A clean, bright white background */
    --color-text: #333333;
    /* A dark, readable grey for text */
    --color-accent: #f39c12;
    /* The warm orange from your logo */
    --color-accent-dark: #d35400;
    /* A darker orange for hover effects */
    --color-border: #dddddd;
    /* A light grey for borders */

    /* Typography */
    --font-body: 'Helvetica', 'Arial', sans-serif;
    --font-headings: 'Georgia', serif;

    /* Spacing */
    --content-width: 1024px;
    /* The max width of our content */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    /* This makes 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.6rem;
    /* Default font size is 16px */
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* === 2. UTILITY & LAYOUT CLASSES === */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: var(--color-accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.btn:hover {
    background-color: var(--color-accent-dark);
}

/* === 3. HEADER & NAVIGATION === */
#header {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    /* Use rem for spacing */
    background-color: white;
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

section[id] {
    scroll-margin-top: 8rem;
}

#header-img {
    height: 50px;
    /* Use height to control logo size */
    width: auto;
}

#nav-bar ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

#nav-bar a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

#nav-bar a:hover {
    color: var(--color-accent);
}

/* === 4. PAGE SECTIONS === */
main {
    padding-top: 80px;
    /* Add padding to push content below the sticky header */
}

section {
    padding: 6rem 0;
    /* Vertical space between sections */
}

.section-heading {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.section-subheading {
    text-align: center;
    font-size: 1.8rem;
    max-width: 60ch;
    /* Limits line length for readability */
    margin: 0 auto 4rem auto;
    /* Center the subheading block */
}

/* Hero Section (Form) */
#form {
    text-align: center;
    margin-top: 2rem;
}

#email {
    padding: 1rem;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
}

/* Features Section */
#features .container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.how {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.how .icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.how h3 {
    font-family: var(--font-headings);
    margin-bottom: 0.5rem;
}

/* How It Works Section (Video) */
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    border-radius: 5px;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.pricing-grid>div {
    /* Select the direct children divs */
    border: 1px solid var(--color-border);
    border-radius: 5px;
    text-align: center;
    padding: 2rem;
    flex: 1;
    max-width: 320px;
}

.pricing-grid h3 {
    font-family: var(--font-headings);
    font-size: 2rem;
}

.pricing-grid h2 {
    font-size: 3.6rem;
    color: var(--color-accent);
    margin: 1rem 0;
}

.pricing-grid ul {
    list-style: none;
    margin: 2rem 0;
}

.pricing-grid li {
    padding: 0.5rem 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* === 5. RESPONSIVE STYLES === */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .how {
        flex-direction: column;
        text-align: center;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
}