/* Lanceabot inner-page design layer.
   Layout + components hand-built to match the Crestmark template's visual language:
   Google Sans, the template's colour tokens, 8px cards, 30px pill buttons, 1120px container.
   Type/colour/spacing mirror the template so inner pages feel part of the same site. */

:root {
  --lp-bg: #ffffff;
  --lp-ink: #0d0d0d;        /* primary text */
  --lp-dark: #111113;       /* dark sections / hero */
  --lp-muted: #636363;      /* secondary text */
  --lp-line: rgba(13,13,13,0.10);
  --lp-beige: #f8f7f5;      /* warm light section */
  --lp-accent: #c2001d;     /* sparing brand accent */
  --lp-max: 1120px;
  --lp-font: "Google Sans","Google Sans Placeholder","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* ---- scaffolding ---------------------------------------------------------- */
.lp { font-family: var(--lp-font); }
/* the page sits in a Framer flex column with align-items:center, so force our
   sections to fill the full width instead of shrinking to content. */
section.lp { width: 100%; align-self: stretch; box-sizing: border-box; }
section.lp * { box-sizing: border-box; }
.lp-section { padding: 96px 24px; }
.lp-section--tight { padding: 64px 24px; }
.lp-container { max-width: var(--lp-max); margin: 0 auto; width: 100%; }
.lp-dark { background: var(--lp-dark); color: #fff; }
.lp-beige { background: var(--lp-beige); }
.lp-center { text-align: center; }

/* reveal (the runtime sets these visible on scroll) */
[data-lance-reveal] { opacity: 0; transform: translateY(18px); }
[data-lance-reveal].lp-in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }

/* ---- type ----------------------------------------------------------------- */
.lp-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-muted); margin: 0 0 16px; }
.lp-dark .lp-eyebrow { color: rgba(255,255,255,.62); }
.lp-h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 600; letter-spacing: -.022em; line-height: 1.06; margin: 0; color: #fff; }
.lp-h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.015em; line-height: 1.14; margin: 0; color: var(--lp-ink); }
.lp-dark .lp-h2 { color: #fff; }
.lp-h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0; color: var(--lp-ink); }
.lp-dark .lp-h3 { color: #fff; }
.lp-lead { font-size: clamp(17px, 1.5vw, 19px); font-weight: 400; line-height: 1.6; color: var(--lp-muted); margin: 0; max-width: 46rem; }
.lp-dark .lp-lead { color: rgba(255,255,255,.72); }
.lp-body { font-size: 16px; font-weight: 400; line-height: 1.62; color: var(--lp-muted); margin: 0; }
.lp-head { max-width: 42rem; }
.lp-head.lp-center { margin-left: auto; margin-right: auto; }
.lp-head > * + * { margin-top: 14px; }

/* ---- buttons (pill, matches template) ------------------------------------- */
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--lp-font); font-size: 16px; font-weight: 500; line-height: 1;
  padding: 15px 26px; border-radius: 30px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--primary { background: var(--lp-dark); color: #fff; }
.lp-dark .lp-btn--primary, .lp-hero .lp-btn--primary { background: #fff; color: var(--lp-ink); }
.lp-btn--secondary { background: transparent; color: var(--lp-ink); border-color: var(--lp-line); }
.lp-dark .lp-btn--secondary, .lp-hero .lp-btn--secondary { color: #fff; border-color: rgba(255,255,255,.32); }

/* ---- hero (consistent Manchester tech graphic + contrast scrim) ------------ */
.lp-hero { padding: 172px 24px 96px; color: #fff; position: relative; overflow: hidden;
  background-color: #0a0f18;
  background-image:
    linear-gradient(90deg, rgba(8,12,20,0.95) 0%, rgba(8,12,20,0.80) 34%, rgba(8,12,20,0.42) 64%, rgba(8,12,20,0.30) 100%),
    url('/assets/lanceabot/hero-bg.jpg');
  background-size: cover; background-position: center right; background-repeat: no-repeat; }
.lp-hero .lp-container { position: relative; z-index: 1; }
.lp-hero__copy { max-width: 42rem; }
.lp-hero .lp-eyebrow { color: rgba(255,255,255,.78); }
.lp-hero .lp-h1 { color: #fff; text-shadow: 0 1px 30px rgba(0,0,0,.35); }
.lp-hero .lp-lead { margin-top: 22px; color: rgba(255,255,255,.92); }
.lp-hero__media { display: none; }   /* graphic is the background; no side image */
.lp-hero__glow { display: none; }

/* ---- generic grid --------------------------------------------------------- */
.lp-grid { display: grid; gap: 28px; margin-top: 48px; }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- card (image + title + desc), borderless like the template ------------ */
.lp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.lp-card__img { border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; background: var(--lp-beige); margin-bottom: 18px; }
.lp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card__title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--lp-ink); margin: 0 0 6px; }
.lp-card__desc { font-size: 15px; line-height: 1.55; color: var(--lp-muted); margin: 0; }
a.lp-card:hover .lp-card__title { opacity: .7; }
a.lp-card:hover .lp-card__img img { transform: scale(1.03); transition: transform .4s ease; }

/* feature card (no image) for benefits */
.lp-feat { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; padding: 26px; }
.lp-beige .lp-feat { background: #fff; }
.lp-feat__title { font-size: 17px; font-weight: 600; color: var(--lp-ink); margin: 0 0 8px; }
.lp-feat__desc { font-size: 15px; line-height: 1.55; color: var(--lp-muted); margin: 0; }

/* ---- split (text + image) ------------------------------------------------- */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-split--rev .lp-split__media { order: -1; }
.lp-split__media { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--lp-beige); }
.lp-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-split__copy > * + * { margin-top: 16px; }
.lp-bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.lp-bullets li { position: relative; padding-left: 28px; font-size: 16px; color: var(--lp-ink); line-height: 1.5; }
.lp-bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--lp-dark); }

/* ---- steps ---------------------------------------------------------------- */
.lp-steps { counter-reset: step; }
.lp-step { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; padding: 28px; }
.lp-step__num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lp-dark); color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.lp-step__title { font-size: 18px; font-weight: 600; color: var(--lp-ink); margin: 0 0 8px; }
.lp-step__desc { font-size: 15px; line-height: 1.55; color: var(--lp-muted); margin: 0; }

/* ---- stats ---------------------------------------------------------------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-stat__num { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -.02em; color: var(--lp-ink); line-height: 1; }
.lp-dark .lp-stat__num { color: #fff; }
.lp-stat__label { font-size: 15px; color: var(--lp-muted); margin-top: 12px; line-height: 1.45; }
.lp-dark .lp-stat__label { color: rgba(255,255,255,.66); }

/* ---- quote ---------------------------------------------------------------- */
.lp-quote { max-width: 60rem; margin: 0 auto; text-align: center; }
.lp-quote__text { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.32; letter-spacing: -.01em; color: var(--lp-ink); margin: 0; }
.lp-dark .lp-quote__text { color: #fff; }
.lp-quote__who { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.lp-quote__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.lp-quote__name { font-size: 16px; font-weight: 600; color: var(--lp-ink); }
.lp-dark .lp-quote__name { color: #fff; }
.lp-quote__role { font-size: 14px; color: var(--lp-muted); }

/* ---- faq ------------------------------------------------------------------ */
.lp-faq { max-width: 50rem; margin: 40px auto 0; }
.lp-faq__item { padding: 24px 0; border-top: 1px solid var(--lp-line); }
.lp-faq__item:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-faq__q { font-size: 18px; font-weight: 600; color: var(--lp-ink); margin: 0 0 10px; }
.lp-faq__a { font-size: 16px; line-height: 1.6; color: var(--lp-muted); margin: 0; }

/* ---- accordion (FAQs / collapsible) --------------------------------------- */
.lp-acc { max-width: 52rem; margin: 44px auto 0; }
.lp-acc__item { border-top: 1px solid var(--lp-line); }
.lp-acc__item:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--lp-font); }
.lp-acc__qt { font-size: 18px; font-weight: 600; color: var(--lp-ink); line-height: 1.35; }
.lp-acc__icon { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-dark); }
.lp-acc__icon::before, .lp-acc__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; background: #fff; transform: translate(-50%, -50%); transition: opacity .3s ease, transform .3s ease; }
.lp-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.lp-acc__item.lp-acc-open .lp-acc__icon::after { opacity: 0; }
.lp-acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.16,1,.3,1); }
.lp-acc__item.lp-acc-open .lp-acc__a { grid-template-rows: 1fr; }
.lp-acc__inner { overflow: hidden; }
.lp-acc__inner p { font-size: 16px; line-height: 1.62; color: var(--lp-muted); margin: 0; padding: 0 4px 26px; max-width: 46rem; }

/* ---- team / people --------------------------------------------------------- */
.lp-person__photo { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #fff; }
.lp-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-person__name { font-size: 18px; font-weight: 600; color: var(--lp-ink); margin-top: 16px; }
.lp-person__role { font-size: 14px; color: var(--lp-muted); margin-top: 4px; }

/* horizontally-scrolling team row (About) */
.lp-people-scroll { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: 44px; padding: 4px 4px 22px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lp-people-scroll::-webkit-scrollbar { height: 6px; }
.lp-people-scroll::-webkit-scrollbar-thumb { background: var(--lp-line); border-radius: 3px; }
.lp-people-scroll .lp-person { flex: 0 0 260px; scroll-snap-align: start; }
@media (max-width: 809px) { .lp-people-scroll .lp-person { flex-basis: 74%; } }

/* real client name in place of the old carousel logos */
.lp-rlogo { display: inline-block; color: #fff; font-weight: 600; font-size: 21px;
  line-height: 1.15; letter-spacing: -0.01em; max-width: 210px; }

/* results carousel turned into a real horizontal scroller (see runtime initResults) */
.lp-rscroll { scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.lp-rscroll::-webkit-scrollbar { height: 6px; }
.lp-rscroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }

/* ---- horizontal scroll ----------------------------------------------------- */
.lp-hs { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 44px;
  padding: 4px 4px 22px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lp-hs::-webkit-scrollbar { height: 6px; }
.lp-hs::-webkit-scrollbar-thumb { background: var(--lp-line); border-radius: 3px; }
.lp-hs__card { flex: 0 0 310px; scroll-snap-align: start; background: #fff; border: 1px solid var(--lp-line);
  border-radius: 14px; padding: 24px; }
.lp-dark .lp-hs__card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.lp-hs__img { aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background: var(--lp-beige); }
.lp-hs__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hs__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--lp-dark); color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.lp-hs__title { font-size: 18px; font-weight: 600; color: var(--lp-ink); margin: 0 0 8px; }
.lp-dark .lp-hs__title { color: #fff; }
.lp-hs__desc { font-size: 15px; line-height: 1.55; color: var(--lp-muted); margin: 0; }
.lp-hs__hint { text-align: right; font-size: 13px; color: var(--lp-muted); margin: 4px 4px 0; }

/* ---- prose (blog article) ------------------------------------------------- */
.lp-prose { max-width: 720px; margin: 0 auto; }
.lp-prose > * + * { margin-top: 22px; }
.lp-prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--lp-ink); line-height: 1.2; margin-top: 44px; }
.lp-prose p { font-size: 18px; line-height: 1.72; color: #2b2b2b; margin: 0; }
.lp-prose ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.lp-prose li { font-size: 18px; line-height: 1.6; color: #2b2b2b; }
.lp-prose img { width: 100%; border-radius: 12px; margin: 8px 0; }
.lp-prose__pull { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--lp-ink); border-left: 3px solid var(--lp-dark); padding-left: 22px; margin: 36px 0; }

/* ---- cta band ------------------------------------------------------------- */
.lp-ctaband { text-align: center; }
.lp-ctaband .lp-h2 { max-width: 36rem; margin: 0 auto; }
.lp-ctaband .lp-lead { margin: 16px auto 0; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1099px) {
  .lp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 809px) {
  .lp-section { padding: 64px 20px; }
  .lp-hero { padding: 130px 20px 64px; }
  .lp-hero--split .lp-container { grid-template-columns: 1fr; }
  .lp-hero__media { display: none; }
  .lp-grid--3, .lp-grid--2, .lp-grid--4 { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; gap: 28px; }
  .lp-split--rev .lp-split__media { order: 0; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ===== Contact / Audit forms ============================================== */
.lp-contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.lp-contact__form { min-width: 0; }
@media (max-width: 860px) { .lp-contact { grid-template-columns: 1fr; gap: 40px; } }

.lp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 560px) { .lp-form__grid { grid-template-columns: 1fr; } }
.lp-field { display: flex; flex-direction: column; min-width: 0; }
.lp-field--full { grid-column: 1 / -1; }
.lp-field label { font-size: 14px; font-weight: 600; color: var(--lp-ink); margin-bottom: 7px; }
.lp-field__req { color: var(--lp-accent); }
.lp-field input, .lp-field select, .lp-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 15px;
  color: var(--lp-ink); background: #fff; border: 1px solid var(--lp-line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s; }
.lp-field textarea { resize: vertical; min-height: 116px; }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus {
  outline: none; border-color: var(--lp-ink); box-shadow: 0 0 0 3px rgba(13,13,13,.08); }
.lp-field.lp-invalid input, .lp-field.lp-invalid select, .lp-field.lp-invalid textarea {
  border-color: var(--lp-accent); box-shadow: 0 0 0 3px rgba(194,0,29,.08); }
.lp-field__err { display: none; color: var(--lp-accent); font-size: 12.5px; margin-top: 6px; }
.lp-field.lp-invalid .lp-field__err { display: block; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-form__submit { margin-top: 22px; appearance: none; border: 0; cursor: pointer;
  background: var(--lp-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 30px; border-radius: 30px; transition: transform .15s, opacity .15s; }
.lp-form__submit:hover { transform: translateY(-1px); }
.lp-form__submit[disabled] { opacity: .6; cursor: default; transform: none; }
.lp-form__status { margin-top: 14px; font-size: 14px; color: var(--lp-muted); min-height: 1.2em; }
.lp-form__status.lp-form__status--err { color: var(--lp-accent); }

.lp-info { display: flex; flex-direction: column; gap: 22px; background: var(--lp-beige);
  border: 1px solid var(--lp-line); border-radius: 16px; padding: 28px; }
.lp-info__block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--lp-muted); margin: 0 0 8px; font-weight: 600; }
.lp-info__block p { margin: 0; font-size: 16px; color: var(--lp-ink); line-height: 1.5; }
.lp-info__block a { color: var(--lp-ink); font-weight: 500; }
.lp-info__block a:hover { color: var(--lp-accent); }
.lp-info__addr { color: var(--lp-ink); }
.lp-linkedin { display: inline-flex; align-items: center; gap: 9px; color: var(--lp-ink);
  font-weight: 600; font-size: 15px; }
.lp-linkedin svg { color: #0a66c2; flex: none; }
.lp-linkedin:hover { color: var(--lp-accent); }
.lp-info .lp-quote, .lp-info .lp { background: transparent !important; border: 0; padding: 0; margin: 0; }
.lp-info .lp-quote__text { font-size: 16px; }

/* ===== Homepage: "What we build" strip ==================================== */
.lp-build-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.lp-build-row__label { margin: 0; font-size: 15px; font-weight: 500; color: var(--lp-muted); white-space: nowrap; }
.lp-build-row__items { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.lp-build-row__items span { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--lp-ink); }
@media (max-width: 809px) {
  .lp-build-row { justify-content: flex-start; gap: 14px 24px; }
  .lp-build-row__items { gap: 10px 20px; }
  .lp-build-row__items span { font-size: 15px; }
}

/* ===== Homepage team: centred 3-up portrait cards (matches About .lp-person) */
.lp-people-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 48px; }
.lp-people-row .lp-person { flex: 0 0 300px; max-width: 300px; }
@media (max-width: 809px) {
  .lp-people-row { gap: 24px; }
  .lp-people-row .lp-person { flex-basis: 100%; max-width: 360px; }
}

/* Final mobile containment: generated stats use inline columns, and horizontal
   rows should scroll internally without widening the whole page. */
@media (max-width: 809px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lp-stat { min-width: 0; }
  .lp-people-scroll, .lp-hs { max-width: 100%; min-width: 0; }
  .lp-people-scroll .lp-person { flex: 0 0 100%; max-width: 100%; }
}
