/* Public landing pages (Recon+, Status+, Valvoline Vision) on the house kit.
   Brand colours arrive as --brand-a / --brand-b from the template; the rest is the shared palette.
   Shared by templates/landing.html and templates/landing-status.html with static/js/landing-house.js. */

:root {
    --ld-ink: #14232a; --ld-muted: #47606a; --ld-muted-2: #7c8a91; --ld-line: #e3e6e8; --ld-line-2: #eef1f2;
    --ld-ground: #f7f9fa; --ld-teal: #0e5e73; --ld-green: #2c7a50;
    --brand-a: #0e5e73; --brand-b: #0b4c5e; --brand-tint: #e7f2f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ld-page {
    margin: 0; background: #fff; color: var(--ld-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5;
}
.ld-page img { max-width: 100%; }
.ld-page a { color: var(--ld-teal); text-decoration: none; }
.ld-page a:hover { text-decoration: underline; }
.ld-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.ld-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px;
    border: 1px solid var(--brand-b); background: var(--brand-b); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .01em;
    cursor: pointer; user-select: none; text-decoration: none !important; transition: filter .15s, transform .05s, background .15s;
}
.ld-page a.ld-btn, .ld-page a.ld-btn:hover, .ld-page a.ld-btn:focus { color: #fff; }
.ld-btn:hover, .ld-btn:focus { filter: brightness(1.08); outline: none; }
.ld-btn:active { transform: translateY(1px); }
.ld-btn.is-ghost, .ld-page a.ld-btn.is-ghost { background: #fff; border-color: var(--ld-line); color: var(--ld-ink); }
.ld-btn.is-ghost:hover, .ld-btn.is-ghost:focus, .ld-page a.ld-btn.is-ghost:hover, .ld-page a.ld-btn.is-ghost:focus { background: var(--ld-ground); border-color: #cfd9dd; color: var(--ld-ink); filter: none; }
.ld-btn.is-small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.ld-btn.is-brand { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); border-color: transparent; }
.ld-btn[disabled] { opacity: .55; cursor: default; }

/* ---------- top bar ---------- */
.ld-top { position: sticky; top: 0; z-index: 50; isolation: isolate; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ld-top.is-stuck { border-color: var(--ld-line); box-shadow: 0 6px 24px rgba(20,35,42,.06); }
.ld-top .ld-wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.ld-top-logo { display: flex; align-items: center; height: 100%; }
.ld-top-logo img { height: 30px; width: auto; display: block; }
.ld-top-nav { display: flex; gap: 4px; margin-left: 10px; }
.ld-top-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ld-muted); font-size: 14px; font-weight: 600; }
.ld-top-nav a:hover { background: var(--ld-ground); color: var(--ld-ink); text-decoration: none; }
.ld-top-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- hero ---------- */
.ld-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.ld-hero::before {
    content: ""; position: absolute; right: -140px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,.65), rgba(255,255,255,0)); pointer-events: none;
}
.ld-hero .ld-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.ld-hero-logo img { height: 84px; width: auto; display: block; }
.ld-hero-logo img.is-tall { height: 120px; }
.ld-hero h1 { margin: 22px 0 10px; font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ld-ink); }
.ld-hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-hero-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ld-muted); max-width: 560px; }
.ld-hero-lead p { margin: 0 0 12px; }
.ld-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ld-hero-note { margin-top: 14px; font-size: 13px; color: var(--ld-muted-2); }

.ld-video { position: relative; border-radius: 18px; overflow: hidden; background: #0f1a20; box-shadow: 0 30px 70px rgba(20,35,42,.28); aspect-ratio: 16 / 9; }
.ld-video video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-video-play {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: linear-gradient(180deg, rgba(15,26,32,0) 40%, rgba(15,26,32,.55) 100%); border: 0; padding: 0; width: 100%;
}
.ld-video-play span {
    display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,.94); color: var(--brand-b); font-size: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .15s;
}
.ld-video-play:hover span { transform: scale(1.06); }
.ld-video-play i { margin-left: 5px; }
.ld-video-cap { position: absolute; left: 18px; bottom: 14px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }

/* ---------- partner strip ---------- */
.ld-partners { border-top: 1px solid var(--ld-line-2); border-bottom: 1px solid var(--ld-line-2); background: #fff; }
.ld-partners .ld-wrap { display: flex; align-items: center; gap: 18px 36px; flex-wrap: wrap; justify-content: center; padding-top: 18px; padding-bottom: 18px; }
.ld-partners-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ld-muted-2); margin-right: 8px; }
.ld-partner { display: inline-flex; align-items: center; height: 44px; cursor: pointer; filter: grayscale(1); opacity: .72; transition: filter .15s, opacity .15s; }
.ld-partner:hover { filter: none; opacity: 1; }
.ld-partner img { max-height: 44px; width: auto; max-width: 150px; }

/* ---------- section scaffolding ---------- */
.ld-section { padding: 72px 0; }
.ld-section.is-ground { background: var(--ld-ground); }
.ld-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-b); margin-bottom: 8px; }
.ld-h2 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ld-ink); }
.ld-sub { margin: 10px 0 0; font-size: 16px; color: var(--ld-muted); max-width: 680px; }
.ld-center { text-align: center; }
.ld-center .ld-sub { margin-left: auto; margin-right: auto; }

/* ---------- feature chips + panels (Status) ---------- */
.ld-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 32px; }
.ld-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ld-line);
    background: #fff; color: var(--ld-muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.ld-chip i { font-size: 12px; color: var(--brand-b); }
.ld-chip:hover { border-color: var(--brand-b); color: var(--ld-ink); }
.ld-chip.is-on { background: var(--brand-b); border-color: var(--brand-b); color: #fff; }
.ld-chip.is-on i { color: #fff; }

.ld-panel { display: none; }
.ld-panel.is-on { display: block; }
.ld-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ld-feature.is-media-left .ld-feature-media { order: -1; }
.ld-feature h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.ld-feature-lead { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; font-size: 16px; color: var(--ld-muted); line-height: 1.55; }
.ld-feature-lead i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-b); font-size: 16px; margin-top: 1px; }
.ld-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 6px 18px; }
.ld-list.is-2col { grid-template-columns: 1fr 1fr; }
.ld-list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ld-ink); line-height: 1.45; }
.ld-list li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-tint);
}
.ld-list li::after {
    content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 3px; border-left: 2px solid var(--brand-b); border-bottom: 2px solid var(--brand-b); transform: rotate(-45deg);
}
.ld-feature-media { position: relative; }
.ld-shots { position: relative; border-radius: 20px; padding: 28px; background: linear-gradient(135deg, var(--brand-tint), #fff 70%); border: 1px solid var(--ld-line-2); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.ld-shots img { border-radius: 10px; box-shadow: 0 18px 50px rgba(20,35,42,.22); background: #fff; }
.ld-shots .ld-shot-main { width: 100%; max-height: 480px; object-fit: contain; }
.ld-shots .ld-shot-aside { position: absolute; right: 18px; bottom: 18px; width: 34%; max-height: 300px; object-fit: contain; border: 3px solid #fff; }
.ld-shots .ld-shot-phone { max-height: 460px; width: auto; }
.ld-shots.is-two .ld-shot-main { width: 70%; align-self: flex-start; }

/* ---------- feature rows (Recon) ---------- */
.ld-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px 0; }
.ld-row + .ld-row { border-top: 1px solid var(--ld-line-2); }
.ld-row.is-media-left .ld-feature-media { order: -1; }
.ld-row h3 { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.ld-row p { margin: 0; font-size: 16px; color: var(--ld-muted); line-height: 1.6; }

/* ---------- metric band ---------- */
.ld-band { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; }
.ld-band .ld-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding-top: 40px; padding-bottom: 40px; }
.ld-band-item { padding: 6px 0; }
.ld-band-item .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ld-band-item .k { margin-top: 4px; font-size: 13.5px; opacity: .9; }

/* ---------- demo ---------- */
.ld-demo .ld-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.ld-demo-aside p { font-size: 16px; color: var(--ld-muted); line-height: 1.6; margin: 10px 0 0; }
.ld-demo-contact { margin-top: 24px; display: grid; gap: 12px; }
.ld-demo-contact a, .ld-demo-contact span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ld-ink); font-weight: 600; }
.ld-demo-contact i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-b); font-size: 14px; }
.ld-products { margin-top: 26px; }
.ld-products .ld-kicker { display: block; }
.ld-products a { display: inline-flex; align-items: center; gap: 8px; margin: 4px 14px 4px 0; font-size: 14.5px; font-weight: 600; color: var(--ld-ink); }
.ld-products a i { color: var(--ld-muted-2); font-size: 12px; }
.ld-card { background: #fff; border: 1px solid var(--ld-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(20,35,42,.08); padding: 26px 26px 22px; }
.ld-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ld-card .ld-sub { font-size: 14px; margin-bottom: 18px; }
.ld-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ld-field { display: flex; flex-direction: column; gap: 6px; }
.ld-field.is-wide { grid-column: 1 / -1; }
.ld-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ld-muted-2); }
.ld-input {
    height: 42px; padding: 0 12px; border: 1px solid var(--ld-line); border-radius: 9px; background: #fff; color: var(--ld-ink); font-size: 15px;
    font-family: inherit; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.ld-input::placeholder { color: #9aa7ad; }
.ld-input:focus { outline: none; border-color: var(--brand-b); box-shadow: 0 0 0 3px var(--brand-tint); }
.ld-input.is-invalid { border-color: #ae3327; }
.ld-form-foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ld-form-msg { font-size: 13.5px; font-weight: 600; display: none; }
.ld-form-msg.error { color: #ae3327; }
.ld-form-msg.success { color: var(--ld-green); }
.ld-form-msg.is-on { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- footer ---------- */
.ld-foot { border-top: 1px solid var(--ld-line); background: #fff; }
.ld-foot .ld-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--ld-muted-2); }
.ld-foot-links { display: flex; gap: 16px; }
.ld-foot-links a { color: var(--ld-muted); font-weight: 600; }

/* ---------- video lightbox ---------- */
.ld-lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(15,26,32,.86); padding: 24px; }
.ld-lightbox.is-on { display: flex; }
body.is-video-open .ld-top { visibility: hidden; }
.ld-lightbox-box { position: relative; width: min(1100px, 100%); border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.ld-lightbox video { display: block; width: 100%; max-height: 82vh; background: #000; }
.ld-lightbox-close {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ld-ink);
    font-size: 24px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ld-lightbox-close:hover { background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .ld-hero .ld-wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
    .ld-hero h1 { font-size: 34px; }
    .ld-feature, .ld-row, .ld-demo .ld-wrap { grid-template-columns: 1fr; gap: 28px; }
    .ld-feature.is-media-left .ld-feature-media, .ld-row.is-media-left .ld-feature-media { order: 0; }
    .ld-top-nav { display: none; }
}
@media (max-width: 640px) {
    .ld-wrap { padding: 0 16px; }
    .ld-top .ld-wrap { height: 58px; }
    .ld-top-logo img { height: 24px; }
    .ld-top-actions .ld-btn { height: 36px; padding: 0 12px; font-size: 13px; }
    .ld-top-actions .is-hide-sm { display: none; }
    .ld-hero-logo img { height: 64px; }
    .ld-hero-logo img.is-tall { height: 96px; }
    .ld-hero h1 { font-size: 28px; }
    .ld-hero-lead { font-size: 15.5px; }
    .ld-section { padding: 48px 0; }
    .ld-h2 { font-size: 26px; }
    .ld-feature h3, .ld-row h3 { font-size: 22px; }
    .ld-list.is-2col { grid-template-columns: 1fr; }
    .ld-chips { gap: 6px; }
    .ld-chip { height: 34px; padding: 0 11px; font-size: 12.5px; }
    .ld-shots { padding: 16px; min-height: 0; }
    .ld-shots .ld-shot-aside { width: 40%; }
    .ld-form { grid-template-columns: 1fr; }
    .ld-card { padding: 20px 18px 16px; }
    .ld-partner { height: 34px; }
    .ld-partner img { max-height: 34px; max-width: 120px; }
    .ld-foot .ld-wrap { justify-content: center; text-align: center; }
}
