:root {
    --dark-blue: #0a2342;
    --teal: #007b8a;
    --green: #4b7f52;
    --gold: #f2a900;
    --light-gray: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333;
    --border-gray: #e0e0e0;
    --azure-blue: #008ad7;
    --nav-height: 60px;
}

/* --- Skip link (a11y) --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark-blue);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }

/* --- Site Navigation --- */
.site-nav {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    z-index: 100;
}
.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}
.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.site-nav-logo {
    height: 38px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.site-nav-brandtext {
    line-height: 1.1;
}
.site-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.site-nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav-links a:hover {
    color: var(--dark-blue);
    border-bottom-color: rgba(242, 169, 0, 0.5);
}
.site-nav-links a[aria-current="page"] {
    color: var(--dark-blue);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* Hamburger toggle (hidden checkbox controls mobile menu) */
.site-nav-toggle {
    display: none;
}
.site-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}
.site-nav-hamburger span {
    display: block;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
    .site-nav-brandtext { display: none; }
    .site-nav-hamburger { display: flex; }
    .site-nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-gray);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav-links li {
        width: 100%;
        text-align: center;
    }
    .site-nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: none;
    }
    .site-nav-links a[aria-current="page"] {
        background: rgba(242, 169, 0, 0.08);
        border-bottom: none;
    }
    /* Open state */
    .site-nav-toggle:checked ~ .site-nav-links {
        max-height: 400px;
    }
    .site-nav-toggle:checked ~ .site-nav-hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .site-nav-toggle:checked ~ .site-nav-hamburger span:nth-child(2) {
        opacity: 0;
    }
    .site-nav-toggle:checked ~ .site-nav-hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Anchor-link scroll offset so deep-links don't hide behind the sticky nav.
   Applies to anything that can be the target of a fragment URL. */
:target,
[id]:target,
section[id],
aside[id],
h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}
/* Universal fallback — covers any element with an id, regardless of tag. */
[id] {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

html { scroll-behavior: smooth; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
}
.logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
}
header h1 {
    color: var(--dark-blue);
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
header h2 {
    color: var(--teal);
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
    font-weight: 400;
}
header .hero-subhead {
    color: var(--text-dark);
    max-width: 720px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.85;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.card h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-top: 0;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.credibility-note {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background-color: rgba(0, 138, 215, 0.06);
    border-left: 3px solid var(--azure-blue);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #444;
}
.track-intro {
    margin-top: -0.75rem;
    margin-bottom: 1.75rem;
    color: #555;
    font-size: 1rem;
}

/* --- Engineering Focus Grid --- */
.engineering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.eng-item h4 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eng-item p {
    font-size: 0.95rem;
    color: #555;
}

/* --- Pilot Program Sidebar Layout --- */
.pilot-highlight {
    background: linear-gradient(135deg, #0a2342 0%, #007b8a 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}
.pilot-highlight h3 {
    color: white;
    border-color: var(--gold);
}
.pilot-highlight p { opacity: 0.95; }
.pilot-problems {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}
.pilot-problems li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-left: 2px solid var(--gold);
    margin-bottom: 0.75rem;
    opacity: 0.95;
}
.pilot-problems li strong { color: var(--gold); }
.pilot-bonus {
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}
.form-intro {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}
.form-followup {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.75rem;
    text-align: center;
}

/* --- Pilot "How this works financially" callout (inside .pilot-highlight) --- */
.pilot-money {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(242, 169, 0, 0.12);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}
.pilot-money h4 {
    margin: 0 0 0.5rem;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.pilot-money p {
    margin: 0;
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.95;
}

/* --- Pricing note (used on Ag non-pilot, Enterprise, Government) --- */
.pricing-note {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 138, 215, 0.05);
    border-left: 3px solid var(--azure-blue);
    border-radius: 6px;
}
.pricing-note h4 {
    margin: 0 0 0.5rem;
    color: var(--dark-blue);
    font-size: 1rem;
}
.pricing-note p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.55;
}
.pricing-note p:last-child { margin-bottom: 0; }
.pricing-note--enterprise {
    margin-top: 2rem;
}
.pricing-emergency {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 138, 215, 0.15);
    font-size: 0.9rem !important;
    color: #555 !important;
}

/* --- Procurement readiness list (Government page) --- */
.procurement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.procurement-list li {
    padding: 1rem 1.25rem;
    background: rgba(10, 35, 66, 0.025);
    border-left: 3px solid var(--teal);
    border-radius: 4px;
    margin-bottom: 0.85rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    align-items: baseline;
}
.procurement-list li strong {
    grid-column: 1;
    grid-row: 1;
    color: var(--dark-blue);
    font-size: 1rem;
}
.procurement-list li .procurement-status {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    white-space: nowrap;
}
.procurement-list li p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.status-registered {
    background: rgba(75, 127, 82, 0.15);
    color: #2c5631;
}
.status-asneeded {
    background: rgba(0, 138, 215, 0.12);
    color: #005c93;
}
.procurement-footnote {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 35, 66, 0.04);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .procurement-list li {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .procurement-list li strong {
        grid-row: 1;
    }
    .procurement-list li .procurement-status {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        margin-top: 0.35rem;
    }
    .procurement-list li p {
        grid-row: 3;
    }
}

/* --- Valley Businesses pricing grid (the main pricing surface) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 1rem;
}
.pricing-item {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-top: 3px solid var(--border-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.pricing-item--featured {
    border-top-color: var(--green);
    background: rgba(75, 127, 82, 0.04);
    box-shadow: 0 4px 16px rgba(75, 127, 82, 0.08);
}
.pricing-rate {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.pricing-item--featured .pricing-rate {
    color: var(--green);
}
.pricing-unit {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}
.pricing-item h4 {
    margin: 0 0 0.6rem;
    color: var(--dark-blue);
    font-size: 1.05rem;
    font-weight: 600;
}
.pricing-item p {
    margin: 0;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
}
.pricing-footnote {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 35, 66, 0.04);
    border-radius: 6px;
    font-size: 0.95rem;
    color: #444;
}
.pricing-footnote strong {
    color: var(--dark-blue);
}

/* --- Homepage Audience Router --- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.audience-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-top: 4px solid var(--border-gray);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-top-color 0.15s;
}
.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.audience-card--ag         { border-top-color: var(--gold); }
.audience-card--enterprise { border-top-color: var(--azure-blue); }
.audience-card--gov        { border-top-color: var(--teal); }
.audience-card--valley     { border-top-color: var(--green); }

.audience-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(10, 35, 66, 0.04);
    color: var(--dark-blue);
}
.audience-card--ag         .audience-card-icon { background: rgba(242, 169, 0, 0.12); color: #b87f00; }
.audience-card--enterprise .audience-card-icon { background: rgba(0, 138, 215, 0.10); color: var(--azure-blue); }
.audience-card--gov        .audience-card-icon { background: rgba(0, 123, 138, 0.10); color: var(--teal); }
.audience-card--valley     .audience-card-icon { background: rgba(75, 127, 82, 0.12); color: var(--green); }

.audience-card h4 {
    margin: 0 0 0.5rem;
    color: var(--dark-blue);
    font-size: 1.15rem;
    font-weight: 600;
}
.audience-card p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
}
.audience-card-cta {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}
.audience-card:hover .audience-card-cta {
    color: var(--teal);
}

@media (max-width: 700px) {
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- Homepage Pilot Teaser strip --- */
.pilot-teaser {
    margin-top: 2rem;
    background: linear-gradient(135deg, #0a2342 0%, #007b8a 100%);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--white);
}
.pilot-teaser-body { flex: 1; }
.pilot-teaser-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.pilot-teaser h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--white);
    border: none;
    padding: 0;
    display: block;
}
.pilot-teaser p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 640px;
}
.pilot-teaser-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--dark-blue);
    text-decoration: none;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.1s;
    flex-shrink: 0;
}
.pilot-teaser-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .pilot-teaser {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    .pilot-teaser-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    }

/* --- Pilot Roadmap Timeline --- */
.roadmap {
    background: rgba(255,255,255,0.08);
    padding: 1.75rem;
    border-radius: 10px;
    margin: 1.75rem 0;
}
.roadmap-title {
    margin: 0 0 1.5rem;
    color: var(--white);
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}
.roadmap-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
}
/* Horizontal connector line behind the markers (desktop) */
.roadmap-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(242, 169, 0, 0.25) 0%,
        var(--gold) 50%,
        rgba(242, 169, 0, 0.25) 100%
    );
    z-index: 0;
}
.roadmap-phase {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.25rem;
}
.roadmap-marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px rgba(10, 35, 66, 1), 0 4px 12px rgba(0,0,0,0.25);
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}
.roadmap-body { width: 100%; }
.roadmap-when {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.roadmap-what {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}
.roadmap-phase p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.85);
    opacity: 1;
}

@media (max-width: 768px) {
    /* Vertical stack with a left-rail connector */
    .roadmap-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .roadmap-timeline::before {
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(
            to bottom,
            rgba(242, 169, 0, 0.25) 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            rgba(242, 169, 0, 0.25) 100%
        );
    }
    .roadmap-phase {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 0.5rem 0 1.25rem;
    }
    .roadmap-phase:last-child { padding-bottom: 0; }
    .roadmap-marker { margin-bottom: 0; }
    .roadmap-body { padding-top: 4px; }
}

/* --- Form Styling --- */
.application-form { margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--white); }
input, select, textarea {
    width: 100%; padding: 0.8rem; border: 1px solid var(--border-gray);
    border-radius: 6px; font-size: 1rem; box-sizing: border-box;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: inherit;
}
.submit-btn {
    background-color: var(--gold); color: var(--dark-blue);
    border: none; padding: 1.1rem; font-size: 1.1rem; font-weight: 700;
    border-radius: 6px; cursor: pointer; width: 100%; margin-top: 1rem;
    transition: transform 0.1s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* --- "Who this is for" audience list (Government page, possibly reused) --- */
.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem 1.5rem;
}
.audience-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #444;
    font-size: 0.95rem;
}
.audience-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}

/* --- Engagement Models grid (Enterprise page, possibly reused elsewhere) --- */
.engagement-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.engagement-item {
    padding: 1.5rem;
    background: rgba(0, 138, 215, 0.04);
    border-radius: 8px;
    border-top: 3px solid var(--azure-blue);
}
.engagement-item h4 {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin: 0 0 0.75rem;
}
.engagement-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.75rem;
}
.engagement-fit {
    font-size: 0.85rem !important;
    color: #777 !important;
    margin-top: 0.5rem !important;
}
.engagement-fit strong { color: var(--dark-blue); }

/* --- General-purpose contact form (lives on white .card backgrounds, not inside .pilot-highlight) --- */
.general-form { margin-top: 1.5rem; }
.general-form label {
    color: var(--text-dark);
}
.general-form .optional {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.3rem;
}
.submit-btn--general {
    background-color: var(--teal);
    color: var(--white);
}
.submit-btn--general:hover {
    background-color: #006470;
}

/* --- Contact --- */
.contact-card {
    display: flex; align-items: center; gap: 30px; max-width: 700px; margin: 0 auto;
}
.portrait {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

footer {
    text-align: center; padding: 3rem; color: #777; font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-card { flex-direction: column; text-align: center; }
    header h1 { font-size: 2rem; }
}
