/* --- Base Styles & Variables --- */
:root {
    --primary-color: #F9A825; /* Orange */
    --primary-color-dark: #e69500; /* Darker Orange */
    --secondary-color: #FFFFFF;
    --text-color-dark: #212529; /* Darker gray, almost black */
    --text-color-medium: #495057; /* Medium gray */
    --text-color-light: #6c757d; /* Light gray */
    --border-color: #dee2e6; /* Lighter border color */
    --background-light: #f8f9fa; /* Very light gray */
    --background-dark: #343a40; /* Dark grey for potential dark sections/footer */
    --success-color: #28a745; /* Green for success status */
    --success-bg-light: rgba(40, 167, 69, 0.1); /* Light green bg */
    --info-color: #17a2b8; /* Teal for info */
    --info-bg-light: rgba(23, 162, 184, 0.1);

    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
    --header-height: 75px;
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color-medium);
    line-height: 1.7;
    background-color: var(--secondary-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Style for when mobile nav is active */
body.mobile-nav-active {
    overflow: hidden; /* Prevent scrolling background */
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* --- Helper Classes --- */
.highlight {
    color: var(--primary-color);
    font-weight: 600;
}
.text-center { text-align: center; }

/* --- Section Base Styles --- */
section {
    padding: 80px 0;
    overflow: hidden;
}
section.pricing-section {
    background-color: var(--background-light); /* Light background for pricing */
}


/* Section Header (Reusable) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-tag {
    display: inline-block;
    background-color: var(--info-bg-light);
    color: var(--info-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}
.pricing-section .section-tag {
    background-color: rgba(249, 168, 37, 0.1); /* Orange bg for pricing tag */
    color: var(--primary-color-dark);
}

.section-header h2 {
    margin-bottom: 15px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
}


/* --- Top Banner --- */
.top-banner {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--primary-color-dark);
}
.top-banner a {
    color: var(--text-color-dark);
    font-weight: 600;
    text-decoration: underline;
}
.top-banner a:hover {
    color: #333;
}


/* --- Header --- */
.site-header {
    background-color: var(--secondary-color);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 38px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text-color-medium);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    font-size: 0.95rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-dark);
    cursor: pointer;
    padding: 5px;
    z-index: 1100; /* Ensure it's above nav */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--background-light);
    border-color: #adb5bd;
    color: var(--text-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
}

.hero-image-container {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}
.sub-headline {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: var(--text-color-light);
    font-weight: 400;
    max-width: 550px;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color-medium);
}
.benefits-list li i {
    color: var(--primary-color);
    font-size: 1.2em;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* --- Trusted By Section --- */
.trusted-by-section {
    padding: 50px 0;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color-light);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 50px 30px;
}

.logo-item img {
    max-height: 50px;
    width: auto;
    max-width: 140px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-speed) ease;
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}


/* --- Features Section --- */
.features-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
    align-items: flex-start;
}

/* Left Column: Interactive Visual */
.feature-visuals {
   position: sticky;
   top: 120px;
   align-self: start;
}

.visual-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.visual-header .status {
    background-color: var(--success-bg-light);
    color: var(--success-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.visual-header .status i { font-size: 0.9em; }

/* Row Styling */
.visual-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.visual-input-group {
    flex: 1;
    min-width: 150px;
}
.visual-input-group.allergens-group {
    flex-basis: 60%;
}

.visual-input-group label,
.checkbox-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-bottom: 8px;
    font-weight: 500;
}
.checkbox-label { margin-bottom: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Styled display spans/divs */
.input-display, .select-display {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0 12px;
    font-weight: 500;
    color: var(--text-color-dark);
    min-height: 42px;
    box-sizing: border-box;
}
.select-display { cursor: pointer; justify-content: space-between; }
.select-display:hover { background-color: #e9ecef; }
.select-display i { color: #aaa; font-size: 0.8em; }

/* Editable Price Container */
.editable-container {
    cursor: pointer;
    position: relative;
    transition: background-color var(--transition-speed) ease;
}
.editable-container:hover { background-color: #e9ecef; }

.currency-symbol { margin-right: 4px; font-weight: 500; line-height: 42px; }
.price-value { font-weight: 600; line-height: 42px; }
.price-value.hidden { display: none; }

/* Editable Input Field Style */
.editable-price-input {
    flex-grow: 1;
    height: 40px;
    line-height: 40px;
    padding: 0 2px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
    border: none;
    outline: none;
    background-color: transparent;
    box-sizing: border-box;
    appearance: textfield;
    text-align: left;
}
.editable-price-input::-webkit-outer-spin-button,
.editable-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Checkbox Styling */
.visual-checkbox-group { display: flex; align-items: center; }
.visual-checkbox-group input[type="checkbox"] { opacity: 0; position: absolute; }

.checkmark-display {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.checkmark-display::after { /* The check mark */
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--secondary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.visual-checkbox-group input[type="checkbox"]:checked ~ .checkbox-label .checkmark-display {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.visual-checkbox-group input[type="checkbox"]:checked ~ .checkbox-label .checkmark-display::after {
    display: block;
}
.visual-checkbox-group input[type="checkbox"]:focus-visible ~ .checkbox-label .checkmark-display {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* Allergen Tags & Input */
.visual-allergens {
    min-height: 30px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.visual-allergens .tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--info-bg-light);
    color: var(--info-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid rgba(23, 162, 184, 0.3);
}
.tag.interactive-tag {
    cursor: pointer;
    padding-right: 10px;
    transition: background-color 0.2s ease;
}
.tag.interactive-tag:hover { background-color: rgba(23, 162, 184, 0.2); }

.tag .remove-tag {
    font-size: 0.9em;
    margin-left: 8px;
    color: var(--info-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.tag.interactive-tag:hover .remove-tag { opacity: 1; }

.add-allergen-controls { display: flex; gap: 8px; }

#allergen-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    background-color: #fff;
    height: 40px;
    line-height: normal;
}
#allergen-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.2);
}

.btn-add {
    padding: 0 12px;
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-add:hover { background-color: var(--primary-color-dark); border-color: var(--primary-color-dark); }


/* Key Metrics Grid */
.visual-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.metric-item { text-align: left; }

.metric-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 3px;
    line-height: 1.2;
}
#metric-cost .metric-value,
#metric-wastage .metric-value,
#metric-margin .metric-value {
     color: var(--primary-color-dark);
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Right Column: Feature List --- */
.feature-list { /* No styles needed */ }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 35px;
    position: relative;
}

.feature-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: var(--border-radius-lg);
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}
.feature-item:hover .feature-icon {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}


.feature-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.feature-text p {
    font-size: 0.98rem;
    color: var(--text-color-medium);
    line-height: 1.7;
}

/* --- Suppliers Section --- */
.suppliers-section {
    padding: 100px 0;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.suppliers-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.suppliers-content .section-tag {
     background-color: var(--success-bg-light);
     color: var(--success-color);
}
.suppliers-content .section-subtitle { margin-bottom: 25px; }

.suppliers-content p {
    color: var(--text-color-medium);
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 580px;
}

.supplier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin-bottom: 30px;
    padding-left: 5px;
}
.supplier-list span {
    font-weight: 500;
    color: var(--text-color-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.supplier-list span i { color: var(--success-color); font-size: 0.9em; }
.supplier-list span i.fa-plus { color: var(--text-color-light); }


.upload-note {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-top: 15px;
    font-style: italic;
}
.upload-note .highlight { font-weight: 600; font-style: normal; }


.suppliers-image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}


/* --- Nutrient Label Section --- */
.nutrient-label-section { padding: 100px 0; }

.nutrient-label-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.7fr) 1fr;
    gap: 80px;
    align-items: center;
}

.nutrient-label-visual {
     display: flex;
     justify-content: center;
}

.nutrient-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    width: 100%;
    max-width: 400px;
    font-size: 0.9rem;
    transition: padding-bottom var(--transition-speed) ease;
}

.nutrient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color-dark);
    cursor: pointer;
    user-select: none;
    transition: margin-bottom var(--transition-speed) ease;
}
.nutrient-header:hover { color: var(--primary-color); }

.nutrient-header span .counter { font-weight: 600; }

.nutrient-header i {
    color: var(--text-color-light);
    font-size: 1em;
    transition: transform var(--transition-speed) ease;
}
.nutrient-card.collapsed .nutrient-header i { transform: rotate(-180deg); }
.nutrient-card.collapsed .nutrient-header { margin-bottom: 0; border-bottom-color: transparent; }


.nutrient-list {
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out 0.1s;
    max-height: 1000px;
    opacity: 1;
}
.nutrient-card.collapsed .nutrient-list {
    max-height: 0;
    opacity: 0;
    margin-top: 0; padding: 0; border: none;
    transition: max-height 0.4s ease-in, opacity 0.2s ease-in;
}

.nutrient-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}
.nutrient-item:last-child { border-bottom: none; }

.nutrient-item.indented {
    padding-left: 20px;
    border-bottom-style: dashed;
    border-color: #e8e8e8;
}
.nutrient-name { color: var(--text-color-medium); font-weight: 500; padding-right: 10px; }
.nutrient-item:not(.indented) .nutrient-name { font-weight: 600; color: var(--text-color-dark); }


.nutrient-value {
    color: var(--text-color-dark);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    min-width: 70px;
    font-feature-settings: 'tnum';
}
.nutrient-value .counter { font-weight: 600; margin-right: 3px; }


/* Nutrient Section Right Column */
.nutrient-label-content { /* No extra styles needed */ }

/* Checklist Style */
.checklist {
    margin-bottom: 30px;
    padding-left: 5px;
}
.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-color-medium);
}
.checklist li i {
    color: var(--success-color);
    font-size: 1.2em;
    flex-shrink: 0;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}
.cta-link i { transition: transform var(--transition-speed) ease; }
.cta-link:hover { color: var(--primary-color-dark); letter-spacing: 0.5px; }
.cta-link:hover i { transform: translateX(5px); }


/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: 1fr 1fr; /* Force two columns for base vs upgrades */
    gap: 40px;
    align-items: stretch; /* Make cards same height if needed */
}

.pricing-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-dark);
    text-align: center;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color-dark);
    line-height: 1;
    margin-bottom: 5px;
    text-align: center;
}
.price-cents {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super; /* Align cents nicely */
    margin-left: 2px;
}
.price-meta {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 30px;
}

.plan-features {
    margin-bottom: 30px;
    flex-grow: 1; /* Push button to bottom */
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-color-medium);
}
.plan-features li i {
    color: var(--success-color);
    font-size: 1.1em;
    flex-shrink: 0;
}

.pricing-card .btn {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

/* Upgrades Card Specifics */
.pricing-card.upgrades {
    background-color: var(--background-light); /* Slightly different background */
    border-style: dashed; /* Dashed border */
}
.plan-description {
    font-size: 0.95rem;
    color: var(--text-color-medium);
    text-align: center;
    margin-bottom: 30px;
}
.upgrade-item {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Icon - text - price */
    gap: 15px 10px; /* Row and column gap */
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.upgrade-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 30px; /* Space before button */
}
.upgrade-info h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
    font-weight: 600;
}
.upgrade-info p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    line-height: 1.5;
    margin-bottom: 0;
}
.upgrade-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-dark);
    text-align: right;
    white-space: nowrap; /* Keep price on one line */
    grid-column: 3 / 4; /* Place in third column */
    grid-row: 1 / 2; /* Align with title */
    align-self: start;
}
.upgrades .price-meta {
     margin-bottom: 0;
     grid-column: 3 / 4; /* Place below price */
     grid-row: 2 / 3;
     align-self: end;
     font-size: 0.8rem;
}



/* --- Final CTA Section --- */
.final-cta-section {
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    text-align: center;
    padding: 80px 0;
}
.final-cta-section h2 {
    color: var(--text-color-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.final-cta-section p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.final-cta-section .btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}
.final-cta-section .btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.sub-cta {
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.8;
}


/* --- Footer --- */
.site-footer-bottom {
    background-color: var(--text-color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1) opacity(0.8);
}
.footer-about p { margin-bottom: 20px; line-height: 1.6; max-width: 280px; }

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    margin-right: 15px;
    transition: color var(--transition-speed) ease;
}
.social-links a:hover { color: var(--primary-color); }
.social-links a:last-child { margin-right: 0; }

.footer-links h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.footer-links ul { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: color var(--transition-speed) ease; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 3px; }

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-legal ul { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: var(--secondary-color); }


/* --- Animations --- */
/* Define keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
     from { opacity: 0; transform: translateX(-40px); }
     to { opacity: 1; transform: translateX(0); }
}


/* Initial state for load animations */
.animate-on-load {
    opacity: 0; /* Start hidden */
    animation-fill-mode: forwards;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Apply specific keyframes */
.animate-on-load.fade-in-up { animation-name: fadeInUp; }
.animate-on-load.fade-in-right { animation-name: fadeInRight; }
.animate-on-load.fade-in-left { animation-name: fadeInLeft; }


/* Initial state for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Set initial transform based on specific class */
}
.animate-on-scroll.fade-in-up { transform: translateY(40px); }
.animate-on-scroll.fade-in-left { transform: translateX(-40px); }
.animate-on-scroll.fade-in-right { transform: translateX(40px); }

/* State when element is in view */
.in-view {
    opacity: 1;
    transform: translate(0, 0) !important; /* Use important to override initial transform */
}

/* Animation Delays */
.delay-1 { animation-delay: 0.15s; transition-delay: 0.15s !important; }
.delay-2 { animation-delay: 0.3s; transition-delay: 0.3s !important; }
.delay-3 { animation-delay: 0.45s; transition-delay: 0.45s !important; }
.delay-4 { animation-delay: 0.6s; transition-delay: 0.6s !important; }
.delay-5 { animation-delay: 0.75s; transition-delay: 0.75s !important; }

/* --- Responsive Adjustments --- */

/* Larger Tablets */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    section { padding: 70px 0; }
    .hero-container { gap: 50px; }
    .hero-image-container { flex-basis: 40%; }
    .features-grid { gap: 60px; }
    .suppliers-grid { gap: 60px; grid-template-columns: 1fr; }
    .suppliers-content { order: 2; text-align: center; }
    .suppliers-content p, .suppliers-content .supplier-list, .suppliers-content .upload-note { margin-left: auto; margin-right: auto; }
    .supplier-list { justify-content: center; }
    .suppliers-image-container { order: 1; max-width: 500px; margin: 0 auto 40px auto; }
    .nutrient-label-grid { gap: 60px; }
    .feature-visuals { position: static; }
    .pricing-grid { grid-template-columns: 1fr; } /* Stack pricing cards */
}

/* Tablets & Smaller */
@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    .section-header { margin-bottom: 50px; }
    .section-header p { font-size: 1rem; }

    /* Header Responsive */
    .main-nav {
        display: block; /* Allow display */
        position: fixed; /* Fixed position */
        top: 0;
        right: -100%; /* Start off-screen */
        width: 80%; /* Or fixed width like 280px */
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-dark); /* Dark bg for nav */
        padding: 80px 30px 30px 30px; /* Padding (top includes header height) */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1050; /* Below toggle, above content */
    }
     .main-nav ul {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        gap: 20px;
        align-items: flex-start;
    }
     .main-nav a {
        color: rgba(255, 255, 255, 0.8); /* Light text */
        font-size: 1.1rem;
        padding: 10px 0;
        font-weight: 500;
    }
     .main-nav a.active, .main-nav a:hover {
         color: var(--primary-color); /* Highlight color */
     }
     .main-nav a::after { display: none; } /* Hide underline */

    /* Show nav when body class is active */
    body.mobile-nav-active .main-nav {
        right: 0;
    }

    .mobile-menu-toggle { display: block; margin-left: 15px; }
    .header-container { padding: 0 15px; }
    .logo img { height: 35px; }

    /* Hero Responsive */
    .hero-section { padding: 60px 0; text-align: center; }
    .hero-container { flex-direction: column-reverse; gap: 50px; }
    .hero-content { max-width: 600px; }
    .sub-headline { font-size: 1.25rem; max-width: none; }
    .benefits-list { display: inline-block; text-align: left; }
    .cta-buttons { justify-content: center; }

    /* Trusted By Responsive */
    .trusted-by-section { padding: 40px 0; }
    .logos-container { gap: 40px 20px; }
    .logo-item img { max-height: 45px; max-width: 120px; }

    /* Features Responsive */
    .features-grid { grid-template-columns: 1fr; gap: 60px; }
    .feature-visuals { order: 1; max-width: 550px; margin: 0 auto; }
    .feature-list { order: 2; }
    .feature-item { flex-direction: column; align-items: center; text-align: center; }
    .feature-icon { margin-bottom: 15px; }

     /* Nutrient Label Responsive */
    .nutrient-label-grid { grid-template-columns: 1fr; gap: 50px; }
    .nutrient-label-visual { order: 1; }
    .nutrient-card { max-width: 450px; margin: 0 auto; }
    .nutrient-label-content { order: 2; text-align: center; }
    .checklist { display: inline-block; text-align: left; }
    .cta-link { justify-content: center; }

    /* Pricing Responsive */
    .pricing-grid { gap: 30px; } /* Reduce gap when stacked */
    .pricing-card { padding: 30px; }

    /* Footer Responsive */
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
    .footer-about { grid-column: 1 / -1; text-align: center; }
    .footer-about p { margin: 0 auto 20px auto; }
    .footer-logo { margin: 0 auto 15px auto; }
    .footer-legal { flex-direction: column; gap: 10px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    section { padding: 50px 0; }
    .btn { width: 100%; margin-bottom: 10px; }
    .btn:last-child { margin-bottom: 0; }
    .btn-sm { width: auto; margin-bottom: 0; }
    .cta-buttons { flex-direction: column; width: 90%; margin: 0 auto; }
    .auth-buttons { gap: 10px; }

    .hero-content { padding: 0 5px; }
    .sub-headline { font-size: 1.1rem; }

    .logo-item img { max-height: 40px; max-width: 100px; }

    .visual-card { padding: 20px; }
    .visual-row { flex-direction: column; align-items: stretch; gap: 20px; }
    .visual-checkbox-group { align-self: flex-start; }
    .visual-input-group.allergens-group { flex-basis: auto; }
    .add-allergen-controls { flex-wrap: wrap; }
    #allergen-input { flex-basis: calc(100% - 50px); }

    .visual-metrics-grid { grid-template-columns: 1fr; gap: 15px; }
    .metric-item { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed #eee; }
    .metric-item:last-child { border-bottom: none; }
    .metric-value { font-size: 1.4rem; order: 2; margin-bottom: 0; }
    .metric-label { order: 1; font-size: 0.75rem; }

    .nutrient-card { padding: 20px; }
    .nutrient-value { min-width: 60px; }

    .pricing-card { padding: 25px; }
    .price { font-size: 2.8rem; }
    .price-cents { font-size: 1.2rem; }
    .upgrade-item { grid-template-columns: 1fr auto; /* Stack price below text */ }
    .upgrade-price { grid-column: 2 / 3; grid-row: 1 / 2; }
    .upgrades .price-meta { grid-column: 2 / 3; grid-row: 2 / 3; }


    .final-cta-section h2 { font-size: 2rem; }
    .final-cta-section p { font-size: 1.05rem; }
    .btn-lg { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul { padding: 0; }
    .social-links { text-align: center; margin-bottom: 20px; }
}