/* ==========================================================================
   CAMPAIGN LANDING PAGES — /lp/<Slug>/ (generated by scripts/build_campaign_lps.py)
   Loads after tokens/base/components. Dark, plain, one CTA. Nothing here may
   pull a third-party asset: these pages must stay fast on mobile.
   ========================================================================== */

.lp-page main section { padding: var(--space-16) 0; }
.lp-page h1, .lp-page h2, .lp-page h3 { font-family: var(--font-heading); letter-spacing: -0.02em; color: var(--color-text); }

/* top bar: logo only, no menu */
.lp-top { padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.lp-top .logo { display: inline-flex; align-items: center; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-lg); }

/* hero */
.lp-page .lp-hero { padding: var(--space-20) 0 var(--space-16); }
.lp-hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.06; max-width: 20ch; font-weight: 800; }
.lp-sub { margin-top: var(--space-6); max-width: 62ch; font-size: var(--text-lg); line-height: 1.6; color: var(--color-text-muted); }
.lp-hero .btn { margin-top: var(--space-8); }
.lp-price { margin-top: var(--space-6); max-width: 70ch; font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); }
.lp-price s { opacity: 0.6; }

/* sections */
.lp-section { border-top: 1px solid var(--color-border); }
.lp-grid3, .lp-grid2 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 768px) {
  .lp-grid3 { grid-template-columns: repeat(3, 1fr); }
  .lp-grid2 { grid-template-columns: repeat(2, 1fr); }
}
.lp-col { border-top: 2px solid var(--color-primary); padding-top: var(--space-4); }
.lp-col h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.lp-col p { color: var(--color-text-muted); }

.lp-quote {
  margin: 0; padding: var(--space-6); display: grid; gap: var(--space-4); align-content: space-between;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.lp-quote blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.55; color: var(--color-text); }
.lp-quote figcaption { font-size: var(--text-sm); font-weight: 600; display: grid; gap: 2px; }
.lp-quote figcaption span { font-weight: 400; color: var(--color-text-dim); }
.lp-fact { margin-top: var(--space-6); max-width: 75ch; font-size: var(--text-sm); color: var(--color-text-muted); }

.lp-split { display: grid; grid-template-columns: 1fr; gap: var(--space-12); }
@media (min-width: 768px) { .lp-split { grid-template-columns: 1fr 1fr; } }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: var(--space-4); }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); color: var(--color-text-muted); }
.lp-steps li::before { content: counter(s); font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); line-height: 1.2; color: var(--color-primary); }
.lp-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.lp-terms li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-text-muted); }
.lp-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; margin-top: 0.05em;
  border-radius: 50%; background-color: var(--color-primary); color: var(--color-bg); font-size: 0.8em; font-weight: 800; }

/* FAQ (same look as the home page) */
.lp-faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { background-color: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item[open] { border-color: var(--color-border-hover); background-color: var(--color-surface-3); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--text-lg); color: var(--color-text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: var(--radius-lg); }
.faq-icon { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 2px;
  background-color: var(--color-primary); transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a { padding: 0 var(--space-6) var(--space-5); }
.faq-a p { margin: 0; color: var(--color-text-muted); line-height: 1.65; }

/* closing band + form */
.lp-close { border-top: 1px solid var(--color-border); }
.lp-close h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.lp-form { margin-top: var(--space-8); max-width: 560px; display: flex; flex-direction: column; gap: var(--space-5); }
.lp-row { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 640px) { .lp-row { grid-template-columns: 1fr 1fr; } }
.lp-hint { font-weight: 400; color: var(--color-text-dim); }
.lp-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: var(--space-10); }
.lp-form .field-error { margin: var(--space-1) 0 0; color: #e05252; font-size: var(--text-sm); }
.lp-form .form-error { margin: 0; color: #e05252; font-size: var(--text-sm); }
.lp-form .captcha { min-height: 65px; }
.lp-small { font-size: var(--text-sm); color: var(--color-text-dim); }

/* thank-you page */
.lp-thanks { padding-top: var(--space-16); padding-bottom: var(--space-16); min-height: 70vh; }
.lp-thanks h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 800; max-width: 24ch; }
.lp-thanks a { color: var(--color-primary); }
.lp-thanks__frame { margin-top: var(--space-8); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; }
.lp-thanks__frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.lp-thanks .lp-small { margin-top: var(--space-4); }

/* footer: Privacy only */
.lp-foot { border-top: 1px solid var(--color-border); padding: var(--space-8) 0; font-size: var(--text-sm); color: var(--color-text-dim); }
.lp-foot a { color: var(--color-text-muted); }

@media (max-width: 640px) {
  .lp-page main section { padding: var(--space-12) 0; }
  .lp-page .lp-hero { padding: var(--space-12) 0 var(--space-10); }
  .lp-hero .btn { width: 100%; }
  .faq-q { font-size: var(--text-base); padding: var(--space-4) var(--space-5); }
  .lp-thanks__frame iframe { height: 900px; }
}

/* form pop-up (same modal as the home page, wider and scrollable for more fields) */
.lp-modal .booking-modal__dialog { max-width: 560px; max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto; }
.lp-modal .lp-form { margin-top: 0; max-width: none; }
.lp-close .lp-sub { margin-top: var(--space-3); }
.lp-close .btn { margin-top: var(--space-8); }
@media (max-width: 640px) {
  .lp-close .btn { width: 100%; }
  .lp-modal .booking-modal__dialog { padding: var(--space-6) var(--space-5); }
}

/* icons on the "what you get" cards, stars on the proof quotes */
.lp-icon { display: block; width: 40px; height: 40px; margin-bottom: var(--space-4); color: var(--color-primary); }
.lp-col { padding-top: var(--space-5); }
.lp-stars { color: var(--color-primary); font-size: var(--text-lg); letter-spacing: 2px; line-height: 1; }

/* "How it works" and "The terms" as cards, same surface as the quote cards */
.lp-split { gap: var(--space-6); }
.lp-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.lp-card .section-label { margin-bottom: var(--space-5); }
@media (max-width: 640px) { .lp-card { padding: var(--space-6) var(--space-5); } }

/* Step 1 of the form, inline in the hero and the closing band (issue #30):
   the email field and the CTA on one row, stacked on phones. The input takes
   the .form-group look from components.css. Turnstile runs invisible here, so
   its box takes no room until it has something to show. */
.lp-email { margin-top: var(--space-8); max-width: 640px; }
.lp-email__row { display: flex; align-items: flex-start; gap: var(--space-3); }
.lp-email__field { flex: 1 1 auto; min-width: 0; }
.lp-email__field input { width: 100%; }
.lp-page .lp-email .btn { margin-top: 0; flex: 0 0 auto; align-self: stretch; max-height: 3.5rem; }
.lp-email .captcha { min-height: 0; }
.lp-email .captcha:not(:empty) { margin-top: var(--space-3); }
.lp-email .field-error { font-size: var(--text-sm); }
.lp-email .form-error { margin: var(--space-3) 0 0; color: #e05252; font-size: var(--text-sm); }
.lp-hero .lp-price { margin-top: var(--space-5); }
@media (max-width: 640px) {
  .lp-email__row { flex-direction: column; align-items: stretch; }
  .lp-page .lp-email .btn { width: 100%; white-space: normal; }
}

/* Step 2, the pop-up: a small step marker over the title. */
.lp-step { margin: 0 0 var(--space-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.lp-modal input[readonly] { color: var(--color-text-muted); cursor: default; }
.lp-modal input[readonly]:focus { border-color: var(--color-border); box-shadow: none; }

/* Adjacent sections that share the moving dot grid (.mesh-merge) have no seam. */
.mesh-merge > .lp-section { border-top: 0; }
.mesh-merge > .lp-hero { padding-bottom: var(--space-8); }

/* Fractional CTO pages (issue #40): "Tech Lead service" comparison and "Your lead(s)".
   The comparison is a table on desktop and one card per tier on phones. */
.lp-h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.15; max-width: 28ch; }
.lp-body { margin-top: var(--space-4); max-width: 70ch; font-size: var(--text-lg); line-height: 1.6; color: var(--color-text-muted); }
.lp-compare-wrap { margin-top: var(--space-8); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.lp-compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.55; }
.lp-compare th, .lp-compare td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-top: 1px solid var(--color-border); }
.lp-compare thead th { border-top: 0; font-family: var(--font-heading); font-size: var(--text-lg); color: var(--color-text); }
.lp-compare thead th:nth-child(3) { color: var(--color-primary); }
.lp-compare tbody th { width: 16%; font-weight: 600; color: var(--color-text); white-space: nowrap; }
.lp-compare td { width: 42%; color: var(--color-text-muted); }
.lp-compare tbody tr:nth-last-child(-n+2) td { color: var(--color-text); }
.lp-tiers { display: none; }
.lp-tier h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.lp-tier dl { margin: 0; display: grid; gap: var(--space-3); }
.lp-tier dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-dim); }
.lp-tier dd { margin: 2px 0 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; }
@media (max-width: 767px) {
  .lp-compare-wrap { display: none; }
  .lp-tiers { display: grid; gap: var(--space-5); margin-top: var(--space-8); }
}
.lp-leads { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 768px) { .lp-leads { grid-template-columns: repeat(2, 1fr); } }
.lp-lead h3 { font-size: var(--text-xl); }
.lp-lead__role { margin-top: var(--space-1); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.lp-lead p:last-child { margin-top: var(--space-3); color: var(--color-text-muted); line-height: 1.6; }
/* Lead cards: LinkedIn photo and link (issue #40). */
.lp-lead__head { display: flex; align-items: center; gap: var(--space-4); }
.lp-lead__photo { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-primary); background: var(--color-surface-2); }
.lp-lead__in { display: inline-block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.lp-lead__in:hover { color: var(--color-primary); }
.lp-lead .lp-lead__bio { margin-top: var(--space-4); color: var(--color-text-muted); line-height: 1.6; }
