/*
 * Q HUB landing pages — built on core.css + layout.css + sections.css tokens (teal/navy, Readex/Plex, radii).
 * Static, no motion library: every page is fully readable without JavaScript (search engines + slow phones).
 */

/* ---------- header ---------- */
.lp-head { position: sticky; top: 0; z-index: var(--z-nav); background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-nav { display: flex; align-items: center; gap: var(--s-4); min-height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--f-num); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.lp-brand img { width: 34px; height: 34px; }
.lp-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.lp-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: var(--r-pill); font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: color var(--t-med) ease, background-color var(--t-med) ease; }
.lp-links a:hover { color: var(--ink); background: var(--teal-soft); }
.lp-links a[aria-current="page"] { color: var(--teal-ink); font-weight: 600; background: var(--teal-soft); }
.lp-tools { display: flex; align-items: center; gap: 8px; }
.lp-burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; color: var(--ink); }
.lp-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.lp-burger span:first-child { top: 17px; } .lp-burger span:last-child { top: 25px; }
.lp-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.lp-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.lp-menu { border-top: 1px solid var(--line); padding: var(--s-3) 0 var(--s-4); }
.lp-menu[hidden] { display: none; }
.lp-menu a { display: flex; align-items: center; min-height: 48px; padding-inline: 4px; font-family: var(--f-head); font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* ---------- breadcrumb ---------- */
.lp-crumbs { padding-top: var(--s-5); font-size: var(--fs-xs); color: var(--mut); }
.lp-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.lp-crumbs li + li::before { content: "‹"; margin-inline-end: 0.4rem; color: var(--line-2); }
[dir="ltr"] .lp-crumbs li + li::before { content: "›"; }
.lp-crumbs a { color: var(--ink-2); }
.lp-crumbs a:hover { color: var(--teal-ink); }

/* ---------- hero ---------- */
.lp-hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.lp-hero h1 { font-family: var(--f-head); font-size: clamp(1.9rem, 2.8vw + 0.6rem, 3.2rem); font-weight: 700; line-height: 1.25; margin: var(--s-4) 0; text-wrap: balance; }
.lp-hero h1 em { font-style: normal; color: var(--teal-ink); }
.lp-lead { color: var(--ink-2); font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.18rem); line-height: 1.85; max-width: 38rem; }
.lp-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; margin-top: var(--s-5); padding: 0.7rem 1.1rem; border-radius: var(--r-md); background: var(--teal-soft); border: 1px solid var(--teal-line); }
.lp-price small { color: var(--ink-2); font-size: var(--fs-sm); }
.lp-price strong { font-family: var(--f-num); font-size: 1.6rem; font-weight: 700; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.lp-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: var(--s-5); padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-sm); }
.lp-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lp-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.lp-hero-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--bg-soft); }
.lp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-media figcaption { position: absolute; inset-inline: 14px; bottom: 14px; padding: 0.55rem 0.9rem; border-radius: var(--r-pill); background: rgba(15, 19, 29, 0.72); color: #fff; font-size: var(--fs-xs); backdrop-filter: blur(8px); width: fit-content; }

/* service pages: price summary card in place of the hero photo */
.lp-quick { display: grid; gap: var(--s-3); padding: clamp(1.3rem, 2.5vw, 1.8rem); border-radius: var(--r-xl); background: linear-gradient(150deg, #141926, #22304a); color: #f2f5f9; box-shadow: var(--shadow-lg); }
.lp-quick-h { font-family: var(--f-head); font-size: 1.15rem; color: #fff; }
.lp-quick ul { list-style: none; margin: 0; padding: 0; display: grid; }
.lp-quick li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--fs-sm); color: #c9d1de; }
.lp-quick li strong { font-family: var(--f-num); font-size: 1.15rem; color: var(--teal-hi); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.lp-quick small { color: #98a3b6; font-size: var(--fs-xs); }
.lp-quick .btn { justify-self: start; }

/* ---------- generic sections ---------- */
.lp-sec { padding-block: clamp(2.5rem, 6vw, 5rem); }
.lp-sec.soft { background: var(--bg-soft); }
.lp-sec h2 { font-family: var(--f-head); font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.3rem); font-weight: 700; line-height: 1.3; margin-bottom: var(--s-3); }
.lp-sec > .wrap > p.lp-sub { color: var(--mut); max-width: 44rem; margin-bottom: var(--s-6); line-height: 1.8; }
.lp-prose { max-width: 50rem; color: var(--ink-2); line-height: 1.95; }
.lp-prose p + p { margin-top: var(--s-4); }
.lp-prose strong { color: var(--ink); }

/* included cards */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); }
.lp-card { padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lp-card b { display: block; font-family: var(--f-head); font-size: 1.05rem; margin-bottom: 0.35rem; }
.lp-card p { color: var(--mut); font-size: var(--fs-sm); line-height: 1.75; }
.lp-card .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); margin-bottom: 0.8rem; }
.lp-card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* price table */
.lp-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.lp-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.lp-table th, .lp-table td { padding: 0.95rem 1.2rem; text-align: start; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
.lp-table thead th { font-family: var(--f-head); font-weight: 600; color: var(--mut); background: var(--bg-soft); }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table td.p { font-family: var(--f-num); font-weight: 700; font-size: 1.05rem; white-space: nowrap; direction: ltr; text-align: left; unicode-bidi: isolate; color: var(--ink); }
.lp-table th.n { text-align: left; }
.lp-table td small { display: block; color: var(--mut); font-size: var(--fs-xs); margin-top: 0.2rem; line-height: 1.6; }
.lp-note { margin-top: var(--s-4); color: var(--mut); font-size: var(--fs-sm); line-height: 1.8; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); counter-reset: st; list-style: none; padding: 0; margin: 0; }
.lp-steps li { position: relative; padding: 1.2rem 1.2rem 1.2rem; border-radius: var(--r-lg); border: 1px dashed var(--line-2); counter-increment: st; }
.lp-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #0f1a22; font-family: var(--f-num); font-weight: 700; margin-bottom: 0.7rem; }
.lp-steps b { display: block; font-family: var(--f-head); margin-bottom: 0.3rem; }
.lp-steps p { color: var(--mut); font-size: var(--fs-sm); line-height: 1.7; }

/* related links */
.lp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.lp-related a { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.05rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-elev); transition: border-color var(--t-med) ease, transform var(--t-med) var(--ease-out); }
.lp-related a:hover { border-color: var(--teal-line); transform: translateY(-2px); }
.lp-related b { font-family: var(--f-head); color: var(--ink); }
.lp-related span { color: var(--mut); font-size: var(--fs-xs); line-height: 1.6; }

/* faq: reuses .faq/.fq from sections.css */
.lp-faq { max-width: 52rem; }
.lp-faq .fq-a { display: none; }
.lp-faq .fq.open .fq-a { display: block; }
.lp-faq .fq-a p { padding: 0 1.3rem 1.15rem; color: var(--ink-2); line-height: 1.85; }

/* closing band */
.lp-band { border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); background: linear-gradient(120deg, #141926, #1f2a3d); color: #f2f5f9; }
.lp-band h2 { color: #fff; margin: 0; }
.lp-band p { color: #c9d1de; margin-top: 0.4rem; }
.lp-band .btn-g { color: #f2f5f9; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }

/* footer logo is a plain <img> here (no logo injector) */
.lp-foot .ft-logo img { width: 190px; height: auto; }
.lp-foot .ft-giant { pointer-events: none; }

@media (max-width: 980px) {
  .lp-links { display: none; }
  .lp-burger { display: block; }
  .lp-tools .btn { display: none; }
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-media { aspect-ratio: 16 / 10; order: -1; }
}
