:root {
    /* Color Palette */
    --brand-primary: #1e3a8a;           /* Indigo-900 */
    --brand-primary-hover: #2d3748;      /* Indigo-800 */
    --brand-primary-focus-ring: rgba(30, 58, 138, 0.25);
    --bg-brand-soft: #eef2ff;            /* Indigo-50 for subtle hover states */
    --brand-secondary: #4b5563;
    --action-primary: #2563eb;          /* Blue-600 */
    --action-primary-hover: #1d4ed8;     /* A slightly darker blue for hover 
    --accent: #F2C94C;                  /* Amber from spec */

    --text-dark: #111827;               /* Gray-900 for headings */
    --text-body: #1f2937;               /* Gray-800 for body text */
    --text-muted: #4b5563;              /* Gray-600 for secondary text */
    --text-light: #6b7280;              /* Gray-500 for captions, footers */
    --text-inverted: #ffffff;         /* White */

    --bg-light: #ffffff;                /* White */
    --bg-soft: #f9fafb;                 /* Gray-50 for page background */
    --bg-medium: #f3f4f6;               /* Gray-100 for section backgrounds */

    --border-color: #e2e8f0;             /* slate-200, a good neutral */
    --border-standard: 1px solid var(--border-color);

    --success: #10B981;
    --error: #EF4444;                   /* --color-danger */
    --error-hover: #dc2626;

    --gradient-start: rgba(30,58,138,0.9);
    --gradient-end: rgba(79,70,229,0.9);
    /* Font Families (From Tax App) */
    --font-family-sans: "Public Sans", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-icons: 'Material Symbols Outlined';

    /* Typography */
    --line-height-base: 1.5;
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem;   /* 16px */
    --font-size-md: 1.125rem; /* 18px */
    --font-size-lg: 1.25rem;  /* 20px */
    --font-size-xl: 1.875rem; /* 30px */
    --font-size-xxl: 2.25rem; /* 36px */

    /* Spacing & Sizing (8-point grid system from spec) */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 2rem;    /* 32px */
    --spacing-xl: 4rem;    /* 64px */

    /* Borders & Shadows */
    --border-radius: 4px;
    --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Spacing Utility Classes
   ========================================================================== */

/*
 * Note: These utilities use `!important` to ensure they override other styles.
 * This is a standard practice for utility classes, as they are meant to have
 * the final say on a specific style.
 */

:root {
  /* Define a single source of truth for your spacing scale.
     1rem is a common and flexible base unit (often 16px). */
  --spacing-base: 1rem;
}

/* --- Margin Bottom (mb) --- */

.mb-1 {
  margin-bottom: calc(var(--spacing-base) * 0.25) !important; /* 4px if base is 16px */
}

.mb-2 {
  margin-bottom: calc(var(--spacing-base) * 0.5) !important; /* 8px */
}

.mb-3 {
  margin-bottom: var(--spacing-base) !important; /* 16px */
}

.mb-4 {
  margin-bottom: calc(var(--spacing-base) * 1.5) !important; /* 24px */
}

.mb-5 {
  margin-bottom: calc(var(--spacing-base) * 3) !important; /* 48px */
}

/* --- Vertical Margin (my) --- */
/* Applies margin to both top and bottom */

.my-1 {
  margin-top: calc(var(--spacing-base) * 0.25) !important;
  margin-bottom: calc(var(--spacing-base) * 0.25) !important;
}

.my-2 {
  margin-top: calc(var(--spacing-base) * 0.5) !important;
  margin-bottom: calc(var(--spacing-base) * 0.5) !important;
}

.my-3 {
  margin-top: var(--spacing-base) !important;
  margin-bottom: var(--spacing-base) !important;
}

.my-4 {
  margin-top: calc(var(--spacing-base) * 1.5) !important;
  margin-bottom: calc(var(--spacing-base) * 1.5) !important;
}

.my-5 {
  margin-top: calc(var(--spacing-base) * 3) !important;
  margin-bottom: calc(var(--spacing-base) * 3) !important;
}

/* ==========================================================================
   2. FONT-FACE (Kept from Tax App)
   ========================================================================== */

/* Noto Sans */
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: url('/static/fonts/noto-sans-v39-latin-regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 500;
    src: url('/static/fonts/noto-sans-v39-latin-500.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    src: url('/static/fonts/noto-sans-v39-latin-700.woff2') format('woff2');
    font-display: swap;
}
/* Note: You have a Noto Sans 900 rule but the file is not in your screenshot. */
/* This might cause a 404 error if you use font-weight: 900 for Noto Sans. */
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 900;
    src: url('/static/fonts/noto-sans-v39-latin-900.woff2') format('woff2');
    font-display: swap;
}


/* Public Sans (Corrected) */
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400; /* Maps to 'regular' */
    src: url('/static/fonts/public-sans-v20-latin-regular.woff2') format('woff2');
    font-display: swap;
}
/*
   REMOVED: The rule for font-weight 500 was here.
   It was removed because the file 'public-sans-v20-latin-500.woff2'
   does not exist in your fonts folder, causing a 404 error.
*/
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 700;
    src: url('/static/fonts/public-sans-v20-latin-700.woff2') format('woff2');
    font-display: swap;
}
/*
   REMOVED: The rule for font-weight 900 was here.
   The file 'public-sans-v20-latin-900.woff2' is also not in your folder.
*/


/* Material Icons / Symbols (Corrected) */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  /* UPDATED: from v2 to match your file 'material-symbols-v2-latin-regular.woff2' */
  src: url('/static/fonts/material-symbols-v2-latin-regular.woff2') format('woff2');
  font-display: block;
}
/* --- UPDATED THIS ENTIRE SECTION --- */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400; /* Regular weight */
    /* UPDATED: from v254 to v266 to match your file */
    src: url('/static/fonts/material-symbols-outlined-v266-latin-regular.woff2') format('woff2');
    font-display: block;
}
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 500; /* Medium weight */
    /* UPDATED: from v257 to v266 to match your file */
    src: url('/static/fonts/material-symbols-outlined-v266-latin-500.woff2') format('woff2');
    font-display: block;
}
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 700; /* Bold weight */
    /* UPDATED: from v257 to v266 to match your file */
    src: url('/static/fonts/material-symbols-outlined-v266-latin-700.woff2') format('woff2');
    font-display: block;
}


/* ==========================================================================
   3. GLOBAL RESET & BASE
   ========================================================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--bg-soft);
    color: var(--text-body);
    line-height: var(--line-height-base);
    min-height: 100vh;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}


/* ==========================================================================
   4. LAYOUT & UTILITIES
   ========================================================================== */

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Consolidated Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .container {
        max-width: 1280px;
    }
}

.flex-grow {
    flex-grow: 1;
}

.w-100 {
    width: 100%;
}

/* Material Icons Helper */
.material-icons,
.material-symbols-outlined {
    font-family: var(--font-family-icons);
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.btn:hover {
    text-decoration: none;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-light), 0 0 0 4px var(--brand-primary);
}

.btn-primary {
    background-color: var(--action-primary);
    color: var(--text-inverted);
    box-shadow: var(--box-shadow-md);
}
.btn-primary:hover {
    background-color: var(--action-primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--brand-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-sm); /* A more subtle shadow than primary */
}

.btn-secondary:hover {
    background-color: var(--bg-medium); /* Faint gray for hover */
    color: var(--text-dark); /* Slightly darken text on hover for emphasis */
    border-color: var(--border-color); /* Ensure border color remains consistent */
}

.btn--inverted {
    background-color: transparent;
    color: var(--text-inverted); /* White text */
    border: 1px solid var(--text-inverted); /* White border */
    box-shadow: none;
}

.btn--inverted:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white glow on hover */
    color: var(--text-inverted);
    border-color: var(--text-inverted);
}

.btn-danger {
    background-color: var(--error);
    color: var(--text-inverted);
}
.btn-danger:hover {
    background-color: var(--error-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-outline:hover {
    background-color: var(--bg-brand-soft);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}
.btn-link:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}
.btn-link:focus-visible {
    box-shadow: none;
    outline: 1px dotted;
}

.btn-disabled,
.btn[disabled] {
    background-color: var(--bg-medium);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
}

/* Ensure hover state doesn't change a disabled button */
.btn-disabled:hover,
.btn[disabled]:hover {
    background-color: var(--bg-medium);
    color: var(--text-light);
    border-color: transparent;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9em;
    color: var(--text-muted);
}
.form-label .optional-text {
    font-weight: normal;
    font-size: 0.9em;
    color: var(--text-light);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-body);
    background-color: var(--bg-light);
    background-clip: padding-box;
    border: var(--border-standard);
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Optional: For Firefox, you can use this to remove default styling, although icon handling differs */
input[type="date"] {
    -moz-appearance: textfield;
}

/* Make the custom material icon have a pointer cursor to indicate it's clickable */
.input-group__icon {
    cursor: pointer;
}
.form-control:focus {
    border-color: var(--brand-primary);
    outline: 0;
    box-shadow: 0 0 0 3px var(--brand-primary-focus-ring);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.select-wrapper {
    position: relative;
}
.select-wrapper::after { /* Custom arrow for select */
    content: '\25BC';
    font-size: 12px;
    color: var(--text-light);
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
select.form-control {
    cursor: pointer;
    padding-right: 30px; /* Make space for custom arrow */
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.form-group-checkbox label {
    margin-bottom: 0; /* Override default label margin */
}

/* Form Validation & Messages */
.form-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
}
.field-error {
    color: var(--error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}
#feedback-form-message.success { color: var(--success); font-weight: bold; }
#feedback-form-message.error { color: var(--error); font-weight: bold; }

input,
        textarea,
        select,
        button {
            font-family: inherit;
}
/* --- Cards --- */
.card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    padding: var(--spacing-lg);
    width: 100%;
}
.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.card-header h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}
.card-header p {
    font-size: var(--font-size-base);
    color: var(--text-muted);
}
.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: var(--border-standard);
    font-size: var(--font-size-sm);
    color: var(--text-light);
}


/* --- Modals & Banners --- */
.modal-overlay {
    display: none; /* JS toggles to 'flex' */
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}
.modal-panel {
    position: relative;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 550px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeInModal 0.3s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
    color: var(--text-dark);
}

.text-center { text-align: center; }

.footer {
    background-color: var(--brand-primary);
    color: var(--light-text-color);
    padding-top: 3rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__brand {
    line-height: 1.3;
}
.footer__title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--bg-brand-soft)
}
.footer__tagline {
    margin: 0;
    color: #ccc;
}

.footer__nav {
    display: flex;
    gap: 1.5rem;
}
.footer__link {
    color: #ccc;
    text-decoration: none;
}
.footer__link:hover {
    color: white;
}

.footer__bottom-bar {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid #343a40;
    font-size: 0.9rem;
    color: #ccc;
}


.nav {
    display: flex; /* Adjust for mobile later */
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--text-inverted);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 0.25rem; /* Space for the underline */
    position: relative;
    transition: color 0.2s ease-in-out;
}
.nav__link:hover {
    color: #c7d2fe; /* Light indigo for hover */
    text-decoration: none;
}
/* Underline effect from your inspiration */
.nav__link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--text-inverted);
    transition: width .3s;
    position: absolute;
    bottom: 0;
    left: 0;
}
.nav__link:hover::after {
    width: 100%;
}

.nav__mobile-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-inverted);
    cursor: pointer;
}
/* Add simple media query for mobile nav button */
@media (max-width: 768px) {
    .nav {
        display: none; /* Hide desktop nav on mobile */
    }
    .nav__mobile-toggle {
        display: block;
    }
}

/* Add this rule to your stylesheet */

.header__brand-link:hover {
  text-decoration: none;
}

/* --- Hero Section --- */
.hero-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-inverted);
    padding: var(--spacing-xl) 0;
}

.progress-nav {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
        margin: 0 0 2rem 0;
        border-bottom: 1px solid #ddd;
    }
    .progress-step {
        text-align: center;
        flex-grow: 1;
        padding-bottom: 0.5rem;
        text-decoration: none;
        color: #888;
        position: relative;
    }
    .progress-step:after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: transparent;
    }
    .progress-step.completed {
        color: #0d6efd; /* Bootstrap primary blue */
        font-weight: 500;
    }
    .progress-step.completed:hover {
        background-color: #f8f9fa;
    }
    .progress-step.active {
        color: #000;
        font-weight: 700;
    }
    .progress-step.active:after {
        background-color: #0d6efd;
    }
    .progress-step-name {
        display: block;
        font-size: 0.9em;
    }

    .wizard-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.wizard-tabs__nav {
    display: flex;
    margin-bottom: -1px; /* Aligns the active border with the container's border */
}

.wizard-tabs__link {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.wizard-tabs__link:hover {
    color: var(--text-dark);
    text-decoration: none;
}

.wizard-tabs__link--active {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* --- Wizard Header --- */
.wizard-header {
    text-align: center;
    margin-bottom: 2.5rem; /* ~40px */
}

.wizard-header__step-counter {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
}

.wizard-header__title {
    font-size: var(--font-size-xxl); /* 36px */
    font-weight: 700;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
}

.wizard-header__intro {
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    max-width: 500px; /* Constrains line length for readability */
    margin-left: auto;
    margin-right: auto;
}

/* --- Form Grid Layout --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 1.5rem; /* Vertical and Horizontal gap */
}

@media (min-width: 768px) {
    .form-grid--2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Input with Icon --- */
.input-group {
    position: relative;
}

.input-group__icon {
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none; /* Allows clicks to pass through to the input */
    line-height: 1;
}

/* Apply this class to a form-control when it has an icon on the right */
.form-control--has-icon-right {
    padding-right: 2.5rem; /* Make space for the icon */
}

/* --- Form Help Text with Icon --- */
.form-help-text {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

.form-help-text .material-icons {
    font-size: 1.1rem; /* Adjust icon size to better match text */
    margin-top: 2px;
}

/* --- General Form Spacing --- */
.form-wizard .form-group {
    margin-bottom: 2rem; /* Consistent vertical spacing between form groups */
}


.page-section {
    padding: var(--spacing-xl) 0;
}

.page-section--white {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--spacing-lg) auto;
}

.section-header__title {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-dark);
}

.section-header__subtitle {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--text-muted);
}


/* --- Hero Section --- */
.landing-hero {
    position: relative;
    color: var(--text-inverted);
    text-align: center;
    padding: 6rem 0;
}

.landing-hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.landing-hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This image URL is from the design. For production, download and serve it locally */
    content: url('https://lh3.googleusercontent.com/aida-public/AB6AXuB2Y1xKlznjW9xmEJIfTNSf8Umtl4WwpWcvoB4rcoMYeelIaZBWG_65nXb36DixL1t8dfWFTVSIBL96V7xvORATmgjKKZmT9J4TuYG02UWJjxwpURbMaoAcLeG9ZmR0A9aTvTXrCSy_8_WY9px72x3ARl49sFufoaI1Z9uSbD-fxeLCdDTwYWWgdhHHgk_D9uc6H71EO7pcboLhkz1MdTBcwwoy-D9s9zStTILaDI4e7EKphWSYZpPdzw4eSxpalCj0pakRUjbTxg');
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.landing-hero__content {
    position: relative;
    z-index: 3;
}

.landing-hero__title {
    font-size: 2.75rem; /* ~44px */
    font-weight: 900;
    line-height: 1.1;
    color: white;
}

.landing-hero__subtitle {
    max-width: 600px;
    margin: var(--spacing-md) auto 0 auto;
    font-size: var(--font-size-lg);
    color: #e5e7eb; /* A light gray for readability */
}

.landing-hero__cta {
    margin-top: 2rem;
}


/* --- Process Steps Section --- */
.process-steps {
    display: grid;
    gap: 2.5rem;
    margin-top: var(--spacing-lg);
}
@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    text-align: center;
}

.process-step__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* 64px */
    height: 4rem; /* 64px */
    border-radius: 50%;
    background-color: var(--bg-brand-soft);
    color: var(--action-primary);
}

.process-step__icon {
    width: 2rem; /* 32px */
    height: 2rem;
}

.process-step__title {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
}

.process-step__description {
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
}


/* --- Features Section --- */
.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}
@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



.hero-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-inverted);
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky; top: 0; z-index: 50;
}
.header__container {
    display: flex; align-items: center; justify-content: space-between;
}
.header__brand-link {
    display: inline-flex; align-items: center;
    gap: 0.75rem; text-decoration: none; color: inherit;
}
.header__brand-icon {
    font-size: 2.5rem; color: var(--brand-primary);
}
.header__title {
    font-size: 1.25rem; font-weight: 700;
    margin: 0; line-height: 1;
}
.header__subtitle {
    font-size: 0.8rem; color: var(--text-muted); margin: 0;
}
.header__nav {
    display: flex; align-items: center; gap: 1.5rem;
}
.header__nav-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s ease;
}
.header__nav-link:hover { color: var(--action-primary); }
.header__nav-link--external .material-icons { font-size: 1rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.625rem 1.25rem; font-size: 0.9rem; font-weight: 600;
    border-radius: var(--border-radius); border: 1px solid transparent;
    cursor: pointer; text-decoration: none; transition: all 0.2s ease-in-out;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background-color: var(--action-primary); color: var(--text-inverted);
}
.btn-primary:hover { background-color: var(--action-primary-hover); }
.btn--large {
    padding: 0.8rem 2rem; font-size: 1rem;
}
.btn-primary--large {
    padding: 1rem 2.5rem; font-size: 1.1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background-color: var(--bg-light);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}
.hero__container {
    display: grid; grid-template-columns: 1fr;
    align-items: center; gap: 3rem; text-align: center;
}
@media (min-width: 992px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }
}
.hero__heading {
    font-size: 2.5rem; font-weight: 900;
    color: var(--text-dark); line-height: 1.2;
}
@media (min-width: 768px) { .hero__heading { font-size: 3.25rem; } }
.hero__subheading {
    font-size: 1.2rem; color: var(--text-muted);
    margin: 1rem auto 2rem auto; max-width: 600px;
}
@media (min-width: 992px) { .hero__subheading { margin: 1rem 0 2rem 0; } }
.hero__actions {
    display: flex; justify-content: center; gap: 1rem;
}
@media (min-width: 992px) { .hero__actions { justify-content: flex-start; } }
.hero__image-wrapper { display: flex; justify-content: center; }
.hero__image { max-width: 100%; height: auto; }

/* ==========================================================================
   FEATURES & PROCESS SECTION
   ========================================================================== */
.features-section {
    padding: 4rem 0;
}
.features-section--light-bg {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1.1rem; color: var(--text-muted); margin-top: 0;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.features-section__grid {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; margin-top: 3rem;
}
@media (min-width: 576px) { .features-section__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-section__grid { grid-template-columns: repeat(4, 1fr); } }
.features-section__grid--3-col {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .features-section__grid--3-col { grid-template-columns: repeat(3, 1fr); } }


.feature-card {
    background: var(--bg-light);
    padding: 2rem; border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.features-section--light-bg .feature-card {
    background: var(--bg-soft);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}
.feature-card__icon-wrapper {
    display: inline-flex; justify-content: center; align-items: center;
    width: 64px; height: 64px; background-color: #eef2ff;
    border-radius: 50%; margin-bottom: 1.5rem;
}
.feature-card__icon {
    font-size: 32px; color: var(--brand-primary);
}
.feature-card__title {
    font-size: 1.25rem; margin: 0 0 0.5rem 0;
}
.feature-card__description {
    color: var(--text-muted); font-size: 0.95rem; margin: 0;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
    padding: 5rem 1.5rem;
    background-color: var(--bg-medium);
}
.final-cta__title {
    font-size: 2.25rem;
}
.final-cta__text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--brand-primary);
    color: #e0e7ff; font-size: 0.9rem;
}
.footer__container {
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: center; gap: 1rem;
    padding-top: 2rem; padding-bottom: 2rem;
    text-align: center;
}
@media (min-width: 768px) {
    .footer__container {
        flex-direction: row; text-align: left;
    }
}
.footer__brand { flex: 1; }
.footer__title {
    font-size: 1.25rem; color: var(--text-inverted); margin: 0 0 0.25rem 0;
}
.footer__tagline { margin: 0; max-width: 450px; }
.footer__tagline a {
    color: var(--text-inverted); font-weight: 500; text-decoration: underline;
}
.footer__nav {
    display: flex; gap: 1.5rem;
}
.footer__link {
    color: #c7d2fe; text-decoration: none; font-weight: 500;
}
.footer__link:hover {
    color: var(--text-inverted); text-decoration: underline;
}
.footer__bottom-bar {
    background-color: rgba(0,0,0,0.2);
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #a5b4fc;
}