/* ============================================
   ScioSolutions — Ad Landing Pages
   Loads after styles.css (reuses variables, buttons, forms, .ai-* pieces)
   ============================================ */

.lp-security { --pillar: var(--threat); --pillar-2: #ffb38a; --pillar-glow: rgba(255, 107, 87, 0.12); --pillar-border: rgba(255, 107, 87, 0.35); }
.lp-impl     { --pillar: var(--accent); --pillar-2: var(--accent-blue); --pillar-glow: rgba(30, 170, 220, 0.12); --pillar-border: rgba(30, 170, 220, 0.35); }

/* --- Minimal top bar (no nav links: keep visitors on the offer) --- */
.lp-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.lp-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lp-bar-cta {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pillar);
    border: 1px solid var(--pillar-border);
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.lp-bar-cta:hover {
    background: var(--pillar-glow);
}

/* --- Hero: pitch on the left, form on the right --- */
.lp-hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -100px;
    width: 800px;
    height: 700px;
    background: radial-gradient(closest-side, var(--pillar-glow), transparent);
    pointer-events: none;
}

.lp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
}

.lp-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pillar);
    padding: 6px 12px;
    border: 1px solid var(--pillar-border);
    border-radius: 999px;
    margin-bottom: 22px;
}

.lp-h1 {
    font-size: clamp(2rem, 3.9vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    text-wrap: balance;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.lp-h1-accent {
    background: linear-gradient(135deg, var(--pillar), var(--pillar-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 560px;
}

.lp-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.lp-checks li {
    position: relative;
    padding-left: 28px;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.55;
}

.lp-checks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--pillar);
    border-bottom: 2px solid var(--pillar);
    transform: rotate(-45deg);
}

.lp-hero .ai-scan,
.lp-hero .ai-flow {
    max-width: 560px;
    margin-bottom: 0;
}

/* Show the log lines immediately on landing pages */
.lp-hero .ai-scan-line {
    opacity: 1;
    transform: none;
    animation: lp-line-in 0.4s ease both;
}

.lp-hero .ai-scan-line:nth-child(1) { animation-delay: 0.2s; }
.lp-hero .ai-scan-line:nth-child(2) { animation-delay: 0.5s; }
.lp-hero .ai-scan-line:nth-child(3) { animation-delay: 0.8s; }
.lp-hero .ai-scan-line:nth-child(4) { animation-delay: 1.1s; }
.lp-hero .ai-scan-line:nth-child(5) { animation-delay: 1.4s; }
.lp-hero .ai-scan-line:nth-child(6) { animation-delay: 1.7s; }

@keyframes lp-line-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

/* --- Form card --- */
.lp-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lp-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--pillar), transparent);
}

.lp-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.lp-form-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.lp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-form .form-row {
    gap: 14px;
}

.lp-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--pillar), var(--pillar-2));
}

.lp-submit:hover {
    box-shadow: 0 8px 30px var(--pillar-glow);
}

.lp-submit[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.lp-form-fine {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.lp-form-status {
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.2em;
}

.lp-form-status:empty { display: none; }
.lp-form-status.is-error { color: var(--threat); }

.lp-thanks {
    display: none;
    text-align: center;
    padding: 24px 0 8px;
}

.lp-thanks-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pillar);
    border: 1px solid var(--pillar-border);
    background: var(--pillar-glow);
}

.lp-thanks h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.lp-thanks p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lp-form-card.is-sent .lp-form,
.lp-form-card.is-sent .lp-form-title,
.lp-form-card.is-sent .lp-form-note { display: none; }
.lp-form-card.is-sent .lp-thanks { display: block; }

/* --- Proof strip --- */
.lp-proof {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 36px 0;
}

.lp-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.lp-proof-value {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--pillar), var(--pillar-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.lp-proof-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Generic content sections --- */
.lp-section {
    padding: 96px 0;
    position: relative;
}

.lp-section + .lp-section {
    border-top: 1px solid var(--border-subtle);
}

.lp-h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 14px;
}

.lp-h2-sub {
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 52px;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Problem cards */
.lp-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lp-problem {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 28px 24px;
}

.lp-problem-k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pillar);
    margin-bottom: 10px;
    display: block;
}

.lp-problem h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lp-problem p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Deliverables */
.lp-deliver-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lp-deliver {
    display: flex;
    gap: 18px;
    padding: 26px 24px;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    background: var(--bg-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-deliver:hover {
    border-color: var(--pillar-border);
    box-shadow: 0 0 36px var(--pillar-glow);
}

.lp-deliver-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pillar);
    background: var(--pillar-glow);
}

.lp-deliver h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lp-deliver p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Process */
.lp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.lp-steps::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pillar-border), transparent);
}

.lp-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.lp-step-num {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--pillar-border);
    color: var(--pillar);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    position: relative;
}

.lp-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lp-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ */
.lp-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-faq details {
    border: 1px solid var(--border-card);
    border-radius: 12px;
    background: var(--bg-card);
    transition: border-color 0.2s ease;
}

.lp-faq details[open] {
    border-color: var(--pillar-border);
}

.lp-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.98rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    color: var(--pillar);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lp-faq details[open] summary::after {
    transform: rotate(45deg);
}

.lp-faq details p {
    padding: 0 22px 20px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

/* Final CTA */
.lp-final {
    text-align: center;
    padding: 96px 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.lp-final::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -300px;
    width: 900px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--pillar-glow), transparent);
    pointer-events: none;
}

.lp-final .cta-button {
    position: relative;
    background: linear-gradient(135deg, var(--pillar), var(--pillar-2));
}

.lp-final .lp-h2-sub {
    margin-bottom: 32px;
}

.lp-cross {
    position: relative;
    display: block;
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lp-cross a {
    color: var(--accent-blue);
    border-bottom: 1px solid rgba(140, 210, 240, 0.3);
}

.lp-footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lp-footer a {
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .lp-hero { padding: 40px 0 64px; }
    .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .lp-problem-grid { grid-template-columns: 1fr; }
    .lp-deliver-grid { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .lp-steps::before { display: none; }
    .lp-proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 480px) {
    .lp-bar-inner { padding: 12px 18px; }
    .lp-bar .nav-logo-text { font-size: 0.9rem; letter-spacing: 0.1em; }
    .lp-bar-cta { padding: 7px 12px; font-size: 0.8rem; }
    .lp-form-card { padding: 26px 20px; }
    .lp-form .form-row { grid-template-columns: 1fr; }
    .lp-section, .lp-final { padding: 72px 0; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-hero .ai-scan,
    .lp-hero .ai-flow { display: none; } /* bring the form up on phones */
    .ai-flow { flex-wrap: wrap; gap: 8px; }
    .ai-flow-step { flex: 1 1 40%; }
    .ai-flow-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero .ai-scan-line { animation: none; }
}
