/* ----------------------------------------------------------------
   Landing Page Styles — Cognaire Respond
   Professional B2B SaaS landing page.
   ---------------------------------------------------------------- */

html { scroll-behavior: smooth; }
#demo { scroll-margin-top: 60px; }

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* -- Trust Bar --------------------------------------------------- */
.lp-trust-bar {
    background: #f8f9fc;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}
.lp-trust-bar .lp-container {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.lp-trust-bar .lp-product-name {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 12px;
    position: relative;
    cursor: default;
}
.lp-badge[role="button"] {
    cursor: pointer;
}

/* -- Badge / Qualification Tooltips ------------------------------ */
.lp-badge-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 280px;
    width: max-content;
    text-align: left;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.lp-badge-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #1a1a2e;
}
/* Footer badges: tooltip above (not below, since footer is at bottom of page) */
.lp-security-footer .lp-badge-tooltip {
    top: auto;
    bottom: calc(100% + 8px);
}
.lp-security-footer .lp-badge-tooltip::after {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: #1a1a2e;
}
.lp-badge:hover > .lp-badge-tooltip,
.lp-badge:focus > .lp-badge-tooltip,
.lp-badge[aria-expanded="true"] > .lp-badge-tooltip,
.lp-not-for-tag:hover > .lp-badge-tooltip,
.lp-not-for-tag:focus > .lp-badge-tooltip,
.lp-not-for-tag[aria-expanded="true"] > .lp-badge-tooltip {
    display: block;
}

/* -- Hero -------------------------------------------------------- */
.lp-hero {
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0 64px;
    text-align: center;
}
.lp-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #1a1a2e;
    max-width: 800px;
    margin: 0 auto 20px;
}
.lp-hero p {
    font-size: 20px;
    line-height: 1.5;
    color: #4b5563;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* -- Hero Image -------------------------------------------------- */
.lp-hero-image-wrapper {
    margin-top: 48px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.lp-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* -- Buttons ----------------------------------------------------- */
.lp-btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.lp-btn-primary:hover {
    background: #1d4ed8;
    text-decoration: none;
    transform: translateY(-1px);
}

/* -- Qualification Band ------------------------------------------ */
.lp-qualification {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    text-align: center;
}
.lp-qualification-for {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}
.lp-qualification-not-for {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-not-for-tag {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2px 12px;
    position: relative;
}
.lp-not-for-tag[role="button"] {
    cursor: pointer;
}

/* -- Primary Detail ---------------------------------------------- */
.lp-primary-detail {
    padding: 64px 0;
}
.lp-primary-detail h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.lp-primary-detail .lp-body-text {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 40px;
}
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.lp-feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.15s;
}
.lp-feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.lp-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.lp-feature-card p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

/* -- Proof ------------------------------------------------------- */
.lp-proof {
    background: #f8f9fc;
    padding: 64px 0;
}
.lp-proof-stats {
    display: flex;
    justify-content: space-around;
    gap: 32px;
}
.lp-stat-callout {
    text-align: center;
}
.lp-stat-number {
    display: block;
    font-size: 56px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.1;
}
.lp-stat-label {
    display: block;
    font-size: 16px;
    color: #4b5563;
    margin-top: 8px;
}
.lp-proof blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 24px;
    margin: 0;
}
.lp-proof blockquote p {
    font-size: 18px;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}
.lp-proof blockquote cite {
    font-size: 14px;
    color: #6b7280;
    font-style: normal;
}

/* -- Video ------------------------------------------------------- */
.lp-video {
    background: #ffffff;
    padding: 64px 0;
}
.lp-video h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.lp-video-description {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 32px;
    line-height: 1.5;
}
.lp-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 880px;
    margin: 0 auto;
}
.lp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* -- Secondary Capabilities -------------------------------------- */
.lp-secondary {
    padding: 64px 0;
}
.lp-secondary > .lp-container > h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    text-align: center;
}
.lp-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.lp-secondary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.lp-secondary-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}
.lp-secondary-card p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
}
.lp-secondary-card a {
    font-size: 14px;
    font-weight: 500;
}
.lp-secondary-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* -- Feature Groups (alternating image + features) --------------- */
.lp-feature-groups {
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.lp-feature-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.lp-fg-img-right > .lp-fg-image {
    order: 2;
}
.lp-fg-img-right > .lp-fg-features {
    order: 1;
}
.lp-fg-image {
    overflow: hidden;
    border-radius: 12px;
}
.lp-fg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.lp-fg-features {
    display: flex;
    flex-direction: column;
    gap: 64px;
    justify-content: center;
}
.lp-fg-feature h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.lp-fg-feature h3 > i {
    color: #2563eb;
    margin-right: 6px;
}
.lp-fg-feature p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

/* -- Social Proof Stats ------------------------------------------ */
.lp-social-proof {
    background: #1a1a2e;
    padding: 48px 0;
}
.lp-stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}
.lp-stat {
    text-align: center;
}
.lp-stat .lp-stat-number {
    color: #ffffff;
    font-size: 36px;
}
.lp-stat .lp-stat-label {
    color: #9ca3af;
    font-size: 14px;
}

/* -- CTA Section ------------------------------------------------- */
.lp-cta-section {
    background: #f8f9fc;
    padding: 80px 0;
    text-align: center;
}
.lp-cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.lp-cta-section > .lp-container > p {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* -- Form -------------------------------------------------------- */
.lp-demo-form {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}
.lp-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.lp-form-field {
    display: flex;
    flex-direction: column;
}
.lp-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}
.lp-form-field input,
.lp-form-field select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a2e;
    transition: border-color 0.15s;
    font-family: inherit;
}
.lp-form-field input:focus,
.lp-form-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.lp-form-field input.lp-field-invalid,
.lp-form-field select.lp-field-invalid {
    border-color: #dc2626;
}
.lp-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    min-height: 16px;
}
.lp-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lp-btn-outline {
    display: inline-block;
    background: #ffffff;
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: 2px solid #2563eb;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.lp-btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.lp-submit-btn,
.lp-schedule-btn {
    min-width: 200px;
}
.lp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.lp-form-status {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    min-height: 20px;
}
.lp-form-status.lp-error {
    color: #dc2626;
}
.lp-form-success {
    text-align: center;
    padding: 32px 0;
}
.lp-form-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 12px;
}
.lp-form-success p {
    font-size: 16px;
    color: #4b5563;
    max-width: 480px;
    margin: 0 auto;
}

/* -- Security Footer --------------------------------------------- */
.lp-security-footer {
    background: #1a1a2e;
    padding: 20px 0;
    border-top: 1px solid #374151;
}
.lp-security-footer .lp-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.lp-security-footer .lp-badge {
    background: transparent;
    border-color: #374151;
    color: #9ca3af;
    font-size: 12px;
}

/* -- Debug Overlay ----------------------------------------------- */
.lp-debug {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.9);
    color: #e5e7eb;
    padding: 8px 16px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    z-index: 9999;
    display: flex;
    gap: 24px;
}
.lp-debug span { color: #60a5fa; }

/* -- Loading / Transition States --------------------------------- */
[data-lp-section] { opacity: 1; transition: opacity 0.15s; }
[data-lp-section].lp-loaded { opacity: 1; }
[data-lp].lp-loading {
    background: #f0f0f0;
    border-radius: 4px;
    min-height: 1em;
}

/* -- Logo -------------------------------------------------------- */
.lp-logo-link {
    display: inline-flex;
    align-items: center;
}
.lp-logo {
    height: 28px;
    width: auto;
}

/* -- Responsive -------------------------------------------------- */
@media (max-width: 768px) {
    .lp-hero h1 { font-size: 32px; }
    .lp-hero p { font-size: 17px; }
    .lp-hero { padding: 48px 0 40px; }
    .lp-hero-image-wrapper { margin-top: 32px; }
    .lp-feature-grid { grid-template-columns: 1fr; }
    .lp-secondary-grid { grid-template-columns: 1fr; }
    .lp-proof-stats { flex-direction: column; align-items: center; }
    .lp-stats-bar { flex-direction: column; align-items: center; }
    .lp-form-grid { grid-template-columns: 1fr; }
    .lp-feature-group { grid-template-columns: 1fr; gap: 24px; }
    .lp-fg-img-right > .lp-fg-image { order: 0; }
    .lp-fg-img-right > .lp-fg-features { order: 0; }
    .lp-feature-groups { gap: 40px; }
    .lp-primary-detail,
    .lp-proof,
    .lp-video,
    .lp-secondary,
    .lp-cta-section { padding: 40px 0; }
}
