/* =========================================================
 * Landing Page template (templates/template-landing.php)
 *
 * Layout for the lead-gen landing pages. Sections adapted from
 * BYQ Supply references (harbor-hero-5, reforma-stats-2,
 * dark-tech-pricing-1) and restyled to the site's dark system:
 * #101010 background, glass panels, PP Neue Montreal / Neue
 * Montreal / PP Supply Mono. FAQ and the final CTA inherit their
 * styling from service.css (.faq-section, .cta-v2).
 * ========================================================= */

.lp-page {
    background: #101010;
    color: #fff;
    overflow-x: clip;
}

.lp-page .container { position: relative; }

/* ---------- Scroll reveal ----------
   Hidden only after landing.js marks the page ready, so content stays
   visible if the script fails or JS is off. */
.lp-js .lp-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    transition-delay: var(--lp-delay, 0ms);
}
.lp-js .lp-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .lp-js .lp-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Shared ---------- */
.lp-eyebrow,
.lp-other-label,
.lp-answer-label {
    display: inline-block;
    font-family: 'PP Supply Mono', 'Neue Montreal', monospace;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.lp-section-head { margin-bottom: 56px; }
.lp-section-head .lp-eyebrow { margin-bottom: 20px; }

.lp-section-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 20ch;
}

.lp-check {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #fff;
}

/* ---------- 1. Hero + answer card (harbor-hero-5) ---------- */
.lp-hero {
    position: relative;
    padding: 200px 0 120px;
}

.lp-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 80% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.lp-hero-main { align-self: center; }

.lp-hero-main .lp-eyebrow { margin-bottom: 28px; }

.lp-hero-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: clamp(44px, 6.2vw, 96px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 32px;
    --lp-delay: 100ms;
}

.lp-hero-title em {
    display: block;
    font-family: 'Neue Montreal', sans-serif;
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

.lp-hero-lead {
    font-family: 'Neue Montreal', sans-serif;
    font-size: 20px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 0 40px;
    --lp-delay: 200ms;
}

.lp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    --lp-delay: 300ms;
}

.lp-hero-call {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: -28px 0 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
}
.lp-hero-call span {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
}
.lp-hero-call:hover span { text-decoration-color: #fff; }

.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
    --lp-delay: 400ms;
}
.lp-hero-badge strong { color: #fff; font-weight: 500; }

.lp-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 0 4px rgba(124, 255, 178, 0.15);
    flex: 0 0 auto;
}

/* Hero visual: real portfolio image with the answer card on top. */
.lp-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 680px;
    padding: 16px;
    border-radius: 24px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-hero-media {
    position: absolute;
    inset: 0;
}
.lp-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
}
.lp-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.lp-hero-chip span {
    font-family: 'PP Supply Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}
.lp-hero-chip:hover { background: rgba(16, 16, 16, 0.7); }

/* Answer card: the quotable passage for search and AI answers. */
.lp-answer {
    position: relative;
    z-index: 2;
    padding: 32px;
    border-radius: 18px;
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-hero-visual.no-image {
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
}
.lp-hero-visual.no-image .lp-answer { background: rgba(255, 255, 255, 0.06); }

.lp-answer-label { margin-bottom: 20px; }

.lp-answer-q {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.lp-answer-a {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 20px;
}

.lp-answer-prices {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.lp-answer-prices li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}
.lp-answer-prices strong { color: #fff; font-weight: 500; text-align: right; }

/* ---------- 2. Stats strip (reforma-stats-2) ---------- */
.lp-stats { padding: 0 0 120px; }

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lp-stat:nth-child(2) { --lp-delay: 150ms; }
.lp-stat:nth-child(3) { --lp-delay: 300ms; }

.lp-stat.is-lead {
    background: #fff;
    color: #101010;
    border-color: #fff;
}

.lp-stat-value {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.lp-stat-label {
    font-family: 'PP Supply Mono', monospace;
    font-size: 14px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 24px 0 0;
    max-width: 30ch;
    opacity: 0.7;
}

/* ---------- 2b. Selected work (nextwell-cms-grid-2) ---------- */
.lp-work { padding: 0 0 140px; }

.lp-work-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
}
.lp-work-head .lp-eyebrow { margin-bottom: 20px; }

.lp-work-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.lp-work-all:hover { background: #fff; color: #101010; }

.lp-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 16px;
}
/* Offset the right column for an editorial rhythm. */
.lp-work-card:nth-child(even) { margin-top: 96px; }

.lp-work-card {
    display: block;
    color: #fff;
    text-decoration: none;
}

.lp-work-media {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
}
.lp-work-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lp-work-card:hover .lp-work-img,
.lp-work-card:focus-visible .lp-work-img { transform: scale(1.04); }

.lp-work-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
}

.lp-work-title {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.lp-work-tags {
    font-family: 'PP Supply Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.lp-work-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lp-work-card:hover .lp-work-arrow {
    background: #fff;
    color: #101010;
    transform: rotate(-45deg);
}

/* ---------- 3. Fit / price drivers ---------- */
.lp-fit {
    padding: 120px 0;
    border-top: 1px solid #2B2B2B;
}

.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.lp-fit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lp-fit-list li {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #2B2B2B;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}
.lp-fit-list li:first-child { padding-top: 0; }

/* ---------- 4. Pricing tiers (dark-tech-pricing-1) ---------- */
.lp-pricing {
    padding: 120px 0;
    border-top: 1px solid #2B2B2B;
    scroll-margin-top: 80px;
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.lp-tier {
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-tier:nth-child(2) { --lp-delay: 120ms; }
.lp-tier:nth-child(3) { --lp-delay: 240ms; }

.lp-tier.is-featured {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.lp-tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.lp-tier-name {
    font-family: 'Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.lp-tier-tag {
    font-family: 'PP Supply Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: #101010;
    white-space: nowrap;
}

.lp-tier-price {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lp-tier-time {
    font-family: 'PP Supply Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 12px 0 20px;
}

.lp-tier-desc {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 24px;
}

.lp-tier-items {
    list-style: none;
    margin: 0 0 32px;
    padding: 24px 0 0;
    border-top: 1px solid #2B2B2B;
    flex: 1 1 auto;
}
.lp-tier-items li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}
.lp-tier-items li + li { margin-top: 14px; }

.lp-tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lp-tier-cta:hover,
.lp-tier-cta:focus-visible { background: #fff; color: #101010; border-color: #fff; }
.lp-tier.is-featured .lp-tier-cta { background: #fff; color: #101010; border-color: #fff; }
.lp-tier.is-featured .lp-tier-cta:hover,
.lp-tier.is-featured .lp-tier-cta:focus-visible { background: rgba(255, 255, 255, 0.85); }

.lp-other,
.lp-proof {
    margin-top: 40px;
    padding: 28px 32px;
    border-radius: 20px;
    border: 1px solid #2B2B2B;
}
.lp-other ul,
.lp-proof ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 32px;
}
.lp-other li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
}
.lp-other strong { color: #fff; font-weight: 500; font-size: 17px; }

.lp-proof ul { grid-template-columns: repeat(3, 1fr); }
.lp-proof a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 4px;
    font-size: 16px;
    line-height: 1.4;
}
.lp-proof a:hover { text-decoration-color: #fff; }

/* ---------- 5. Process ---------- */
.lp-process {
    padding: 120px 0;
    border-top: 1px solid #2B2B2B;
}

.lp-process-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-step {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}
.lp-step:nth-child(2) { --lp-delay: 100ms; }
.lp-step:nth-child(3) { --lp-delay: 200ms; }
.lp-step:nth-child(4) { --lp-delay: 300ms; }

.lp-step-num {
    font-family: 'PP Supply Mono', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.lp-step-title {
    font-family: 'Neue Montreal', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.lp-step-when {
    display: block;
    font-family: 'PP Supply Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.lp-step p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ---------- 6. FAQ spacing (styling from service.css) ---------- */
.lp-faq-section { border-top: 1px solid #2B2B2B; }

/* ---------- 7. Related reading ---------- */
.lp-related { padding: 0 0 120px; }

.lp-related-title {
    font-family: 'PP Supply Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
}

.lp-related-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
}
.lp-related-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #2B2B2B;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.35;
    transition: padding 0.2s ease, color 0.2s ease;
}
.lp-related-grid a:hover { padding-left: 8px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .lp-process-list { grid-template-columns: repeat(2, 1fr); }
    .lp-other ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .lp-hero { padding: 160px 0 96px; }
    .lp-hero-visual {
        display: block;
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: none;
        border: 0;
    }
    .lp-hero-media {
        position: relative;
        aspect-ratio: 4 / 3;
        border-radius: 20px;
        overflow: hidden;
    }
    .lp-hero-media::after { display: none; }
    .lp-answer {
        margin-top: 12px;
        background: rgba(255, 255, 255, 0.06);
    }
    .lp-work-card:nth-child(even) { margin-top: 0; }
    .lp-hero-grid,
    .lp-split { grid-template-columns: 1fr; gap: 48px; }
    .lp-pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
    .lp-section-title { font-size: 48px; }
    .lp-stat-value { font-size: 64px; }
    .lp-proof ul { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .lp-hero { padding: 130px 0 72px; }
    .lp-hero-lead { font-size: 17px; }
    .lp-hero-badge { border-radius: 16px; }
    .lp-answer { padding: 26px 20px; border-radius: 20px; }
    .lp-answer-q { font-size: 23px; }
    .lp-stats { padding-bottom: 72px; }
    .lp-work { padding-bottom: 72px; }
    .lp-work-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
    .lp-work-grid { grid-template-columns: 1fr; gap: 36px; }
    .lp-work-title { font-size: 22px; }
    .lp-hero-chip { top: 12px; left: 12px; }
    .lp-stats-grid,
    .lp-process-list,
    .lp-related-grid,
    .lp-other ul { grid-template-columns: 1fr; }
    .lp-stat { min-height: 0; gap: 24px; padding: 28px; }
    .lp-stat-value { font-size: 56px; }
    .lp-fit,
    .lp-pricing,
    .lp-process { padding: 72px 0; }
    .lp-section-head { margin-bottom: 36px; }
    .lp-section-title { font-size: 36px; }
    .lp-fit-list li { font-size: 17px; }
    .lp-tier { padding: 28px 22px 22px; }
    .lp-tier-price { font-size: 32px; }
    .lp-other,
    .lp-proof { padding: 22px; }
    .lp-related { padding-bottom: 72px; }
    .lp-related-grid a { font-size: 16px; }
}
