/* CSS Variables */
:root {
    --primary: #1F4D3A;
    --primary-dark: #163829;
    --secondary: #2F6B4F;
    --accent: #5B9E7C;
    --text: #2A2E2B;
    --text-light: #5F6B65;
    --white: #ffffff;
    --gray-50: #F7F6F2;
    --gray-100: #EFEDE6;
    --gray-200: #E6E3DC;
    --gray-300: #D4CFC2;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .hero-kicker {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Brand logo — square corners, no shadow (per brand rules) */
.hero-image img.hero-logo {
    width: 320px;
    max-width: 70%;
    border-radius: 0;
    box-shadow: none;
}

/* Footer reversed wordmark */
.footer-about img.footer-wordmark {
    height: 34px;
    width: auto;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image .placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.team-info .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.linkedin-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #0077b5;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.linkedin-link:hover {
    color: #005885;
    text-decoration: underline;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(61, 126, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Page Headers */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.product-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.product-card .product-tagline {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-card ul.product-points {
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.product-card ul.product-points li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-card ul.product-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: var(--accent);
}

.product-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Feature Grid (product detail pages) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--white);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.feature-card h4 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Surfaces / three-up cards */
.surface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.surface-card {
    background-color: var(--gray-50);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.surface-card h4 {
    margin-bottom: 0.75rem;
}

.surface-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Pricing Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--secondary);
    position: relative;
}

.pricing-card .plan-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--gray-100);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.pricing-card.featured .plan-badge {
    background-color: var(--secondary);
    color: var(--white);
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-card .plan-summary {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-card .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-card ul.plan-features {
    margin: 1.5rem 0;
    display: grid;
    gap: 0.75rem;
}

.pricing-card ul.plan-features li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-card ul.plan-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Pricing Mode Headers & Tiers */
.mode-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.mode-header .mode-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.mode-header h3 {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.mode-header p {
    margin-bottom: 1.25rem;
}

.included-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.included-pills span {
    background-color: var(--gray-100);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}

.tier-card .tier-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.tier-card .tier-audience {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    min-height: 2.5em;
}

.tier-card .tier-acv {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.tier-card .tier-acv span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.tier-specs {
    margin: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
}

.tier-specs .spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.tier-specs .spec-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.tier-specs .spec-value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.mode-block {
    margin-bottom: 4rem;
}

.mode-block:last-child {
    margin-bottom: 0;
}

/* Metric explainer (upload records vs search reveals) */
.metric-explainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 940px;
    margin: 0 auto 1.5rem;
}

.metric-card {
    background-color: var(--gray-50);
    border-radius: 12px;
    padding: 1.75rem;
    border-top: 3px solid var(--accent);
}

.metric-card .metric-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.metric-card h4 {
    margin-bottom: 0.5rem;
}

.metric-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.metric-note {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
    color: var(--text);
    font-weight: 500;
}

/* Pricing Principles */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.principle-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.principle-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.principle-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    padding: 3.5rem;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.cta-banner .btn-light {
    background-color: var(--white);
    color: var(--primary);
}

.cta-banner .btn-light:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Request a Pilot form (inside the CTA banner) */
.pilot-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 560px;
    margin: 2rem auto 0;
    text-align: left;
}

.pilot-form .form-group {
    margin-bottom: 1.25rem;
}

.pilot-form label {
    color: var(--text);
    font-size: 0.95rem;
}

.pilot-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}

.pilot-form input:focus,
.pilot-form textarea:focus,
.pilot-form select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.14);
}

.pilot-form textarea {
    min-height: 120px;
}

.pilot-form button[type="submit"] {
    width: 100%;
}

.pilot-form .form-status {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    min-height: 1.2em;
    text-align: center;
    color: var(--text-light);
}

.pilot-form .form-status.success {
    color: var(--primary);
    font-weight: 600;
}

.pilot-form .form-status.error {
    color: #b03a3a;
    font-weight: 600;
}

.pilot-form .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Stat row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.1;
}

.stat-item .stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Login button (header) */
.nav-links a.btn-nav {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-links a.btn-nav::after {
    display: none;
}

.nav-links a.btn-nav:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Utilities */
.bg-light {
    background-color: var(--gray-50);
}

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

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 140px 0 60px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
