/* ===== Keyword landing pages (Views/Home/Landing.cshtml) and the About intro. Prefix: ld- =====
   Uses the shared tokens (tokens.css) so the brand colour / theme panel apply. */

.ld-page { padding-top: var(--header-offset, 96px); background: var(--color-bg); }
.ld-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.ld-hero { padding: 56px 0 48px; }
.ld-crumb { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: 18px; }
.ld-crumb a { color: inherit; text-decoration: none; }
.ld-crumb a:hover { color: var(--color-primary-hover); }
.ld-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill);
    background: var(--color-primary-soft); border: 1px solid var(--color-primary-soft-border);
    color: var(--color-primary-strong); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.ld-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }
.ld-h1 {
    margin: 16px 0 0; max-width: 860px;
    font-size: clamp(2.1rem, 3.2vw + .8rem, 3.4rem); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.5px;
    color: var(--color-text);
}
.ld-lead { margin: 18px 0 0; max-width: 760px; font-size: 1.12rem; line-height: 1.75; color: var(--color-text-muted); }
.ld-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ld-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
    font-weight: var(--fw-semibold); text-decoration: none; transition: background var(--duration-base), color var(--duration-base), border-color var(--duration-base);
}
.ld-btn--primary { background: var(--gradient-primary); color: var(--color-on-primary); box-shadow: var(--shadow-primary); }
.ld-btn--primary:hover, .ld-btn--primary:focus-visible { background: var(--gradient-primary-hover); color: var(--color-on-primary); }
.ld-btn--ghost { border: 1px solid var(--color-border); color: var(--color-text); background: var(--color-surface); }
.ld-btn--ghost:hover, .ld-btn--ghost:focus-visible { border-color: var(--color-primary); color: var(--color-primary-hover); }

.ld-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.ld-trust li { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.ld-trust b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--color-text); }
.ld-trust span { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- sections ---------- */
.ld-section { padding: 48px 0; }
.ld-section--muted { background: var(--color-surface-muted); }
.ld-h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 1.6vw + .9rem, 2.2rem); line-height: var(--lh-snug); font-weight: 800; color: var(--color-text); }
.ld-prose { max-width: 820px; font-size: 1.05rem; line-height: 1.8; color: var(--color-neutral-700); }
.ld-prose > * + * { margin-top: 1em; }
.ld-prose p { margin-bottom: 0; }
.ld-prose ul, .ld-prose ol { padding-left: 1.3em; }
.ld-prose li + li { margin-top: .45em; }
.ld-prose a { color: var(--color-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.ld-prose strong { color: var(--color-text); }

.ld-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ld-card { height: 100%; padding: 24px; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.ld-card__ico {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px;
    background: var(--color-primary-soft); color: var(--color-primary-strong); font-size: 20px;
}
.ld-card h3 { margin: 16px 0 6px; font-size: 1.15rem; font-weight: var(--fw-bold); color: var(--color-text); }
.ld-card p { margin: 0; font-size: .98rem; line-height: 1.65; color: var(--color-text-muted); }
.ld-card--plain h3 { margin-top: 0; }

/* project cards */
.ld-project { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); }
.ld-project img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--color-neutral-100); }
.ld-project div { padding: 18px 20px 20px; }
.ld-project h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: var(--fw-bold); color: var(--color-text); }
.ld-project p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--color-text-muted); }
.ld-project small { display: block; margin-top: 10px; font-size: var(--fs-xs); color: var(--color-text-subtle); }
.ld-more { margin-top: 20px; }
.ld-more a { color: var(--color-primary-hover); font-weight: var(--fw-semibold); text-decoration: none; }

/* FAQ */
.ld-faq { max-width: 860px; }
.ld-faq details { border-bottom: 1px solid var(--color-border); }
.ld-faq summary {
    display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
    font-size: 1.05rem; font-weight: var(--fw-semibold); color: var(--color-text);
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-primary); }
.ld-faq details[open] summary::after { content: "−"; }
.ld-faq p { margin: 0 0 18px; line-height: 1.75; color: var(--color-text-muted); }

/* related links */
.ld-related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ld-related a {
    display: inline-flex; padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-border);
    background: var(--color-surface); color: var(--color-text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.ld-related a:hover, .ld-related a:focus-visible { border-color: var(--color-primary); color: var(--color-primary-hover); }

/* closing call to action */
.ld-cta { margin: 24px 0 64px; padding: 40px; border-radius: 28px; background: var(--color-surface-dark, #0f172a); color: #e2e8f0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.ld-cta h2 { margin: 0; font-size: clamp(1.4rem, 1.4vw + .8rem, 2rem); font-weight: 800; color: #fff; }
.ld-cta p { margin: 8px 0 0; color: #cbd5e1; max-width: 560px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .ld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .ld-hero { padding-top: 32px; }
    .ld-grid { grid-template-columns: 1fr; }
    .ld-cta { padding: 28px 22px; }
}
