/*
 * Paid-traffic landing pages (/lp/*). Mobile first.
 * Rules from research/LANDING_RESEARCH.md: the form (or quiz step 1) sits in
 * the first phone screen, labels above fields, 48px+ targets, 2.5-5 screens,
 * no site navigation, a risk-reversal line under every primary button.
 */
:root {
  --lp-navy: #0b1028;
  --lp-navy-2: #161d44;
  --lp-ink: #151a33;
  --lp-ink-2: #4a5170;
  --lp-paper: #f6f5fb;
  --lp-line: #d9dcea;
  --lp-purple: #6a3de8;
  --lp-purple-2: #8b63f5;
  --lp-purple-soft: #efe9ff;
  --lp-green: #0f8a5f;
  --lp-radius: 16px;
}

body.lp-body { background: var(--lp-paper); color: var(--lp-ink); }
.lp-body main { display: block; }
.lp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.lp-body a { color: var(--lp-purple); }

/* ---- header: logo + phone, nothing else ---- */
.lp-top { background: var(--lp-navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-top .lp-wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.lp-logo { display: block; height: 30px; width: auto; }
.lp-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-call svg { width: 16px; height: 16px; }
.lp-call:focus-visible, .lp-btn:focus-visible, .lp-body summary:focus-visible, .lp-choice:focus-visible {
  outline: 3px solid #ffd166; outline-offset: 2px; }

/* ---- hero ---- */
.lp-hero { background: radial-gradient(120% 90% at 85% 0%, #3a2a8f 0%, rgba(58,42,143,0) 55%), linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%);
  color: #fff; padding: 18px 0 28px; }
.lp-hero-grid { display: grid; gap: 18px; }
.lp-eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #c9bdfb; font-weight: 600; }
.lp-hero h1 { margin: 0; font-size: 30px; line-height: 1.12; letter-spacing: -.01em; font-weight: 700; color: #fff; }
.lp-hero h1 em { font-style: normal; color: #c8b6ff; }
.lp-sub { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: #dcdff0; }
.lp-ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: #e6e8f5; }
.lp-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.lp-ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: #22c38e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.4 4.6 10l-1.2 1.2L8 15.8l8.6-8.6-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.lp-hide-sm { display: none; }

/* ---- form card ---- */
.lp-card { background: #fff; color: var(--lp-ink); border-radius: var(--lp-radius); padding: 18px 16px 16px;
  box-shadow: 0 18px 50px rgba(5, 8, 30, .35), 0 2px 6px rgba(5, 8, 30, .2); }
.lp-card h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; color: var(--lp-ink); }
.lp-card .lp-card-sub { margin: 0 0 12px; font-size: 15px; color: var(--lp-ink-2); }
.lp-field { margin: 0 0 12px; }
.lp-field label { display: block; margin: 0 0 5px; font-size: 15px; font-weight: 600; color: var(--lp-ink); }
.lp-field label span { font-weight: 400; color: var(--lp-ink-2); }
.lp-input { display: block; width: 100%; min-height: 52px; padding: 12px 14px; font-size: 17px; line-height: 1.3;
  color: var(--lp-ink); background: #fff; border: 1.5px solid #b9bed6; border-radius: 10px; box-sizing: border-box; }
.lp-input::placeholder { color: #8a90ab; }
.lp-input:focus { outline: none; border-color: var(--lp-purple); box-shadow: 0 0 0 3px rgba(106, 61, 232, .22); }
.lp-input[aria-invalid="true"] { border-color: #c2253f; }
.lp-err { margin: 5px 0 0; font-size: 14px; color: #b0192f; font-weight: 600; }
.lp-err:empty { display: none; }
.lp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 18px;
  border: 0; border-radius: 12px; background: var(--lp-purple); color: #fff !important; font-size: 18px; font-weight: 700;
  cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgba(106, 61, 232, .35); transition: background .15s, transform .15s; }
.lp-btn:hover { background: #5a2fd6; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.lp-btn-ghost { background: transparent; color: var(--lp-purple) !important; border: 2px solid var(--lp-purple); box-shadow: none; }
.lp-risk { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--lp-ink-2); text-align: center; }
.lp-risk b { color: var(--lp-ink); }
.lp-legal { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: #6b7190; text-align: center; }
.lp-legal a { color: #6b7190; }
.lp-response:empty { display: none; }
.lp-response { margin-top: 12px; }
.lp-ok { padding: 14px; border-radius: 12px; background: #e7f8f0; border: 1px solid #9fdcc2; color: #0b4d36; }
.lp-ok p { margin: 0 0 4px; }
.lp-ok strong { font-size: 17px; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lp-form-done .lp-field, .lp-form-done .lp-btn, .lp-form-done .lp-risk, .lp-form-done .lp-legal { display: none; }

/* ---- sections ---- */
.lp-sec { padding: 34px 0; }
.lp-sec + .lp-sec { padding-top: 6px; }
.lp-sec h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; color: var(--lp-ink); }
.lp-sec .lp-lede { margin: -6px 0 16px; color: var(--lp-ink-2); font-size: 16px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.lp-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 14px; }
.lp-steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lp-purple-soft); color: var(--lp-purple); font-weight: 800; font-size: 18px; }
.lp-steps b { display: block; font-size: 17px; margin-bottom: 2px; }
.lp-steps span { color: var(--lp-ink-2); font-size: 15px; }

/* proof tiles */
.lp-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-tile { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.lp-tile .lp-site { font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--lp-ink); }
.lp-tile .lp-dom { font-size: 13px; color: var(--lp-ink-2); word-break: break-all; }
.lp-score { display: flex; align-items: baseline; gap: 6px; }
.lp-score b { font-size: 34px; line-height: 1; color: var(--lp-green); font-variant-numeric: tabular-nums; }
.lp-score span { font-size: 13px; color: var(--lp-ink-2); line-height: 1.25; }
.lp-tile .lp-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; }
.lp-tile .lp-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.lp-hero .lp-proof { margin-top: 14px; }
.lp-hero .lp-tile { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.lp-hero .lp-tile .lp-site { color: #fff; }
.lp-hero .lp-tile .lp-dom, .lp-hero .lp-score span { color: #c9cde4; }
.lp-hero .lp-score b { color: #4be3a7; }
.lp-hero .lp-tile .lp-links a { color: #d6c9ff; }
.lp-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--lp-ink-2); }
.lp-hero .lp-note { color: #b9bed8; }

/* price */
.lp-price { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 16px; }
.lp-hero .lp-price { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }
.lp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.lp-price-amt { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.lp-price-amt small { font-size: 18px; font-weight: 600; }
.lp-price-plan { font-size: 15px; font-weight: 600; }
.lp-price-term { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.lp-price ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.lp-price li { display: flex; gap: 8px; }
.lp-price li::before { content: "✓"; color: var(--lp-green); font-weight: 800; }
.lp-hero .lp-price li::before { color: #4be3a7; }
.lp-price .lp-small { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; opacity: .85; }

/* faq */
.lp-faq details { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; margin: 0 0 8px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 14px; font-weight: 700; font-size: 16px; position: relative; min-height: 48px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--lp-purple); border-bottom: 2.5px solid var(--lp-purple); transform: rotate(45deg); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lp-faq details p { margin: 0; padding: 0 14px 14px; color: var(--lp-ink-2); font-size: 15.5px; line-height: 1.5; }

/* closing band */
.lp-close { background: var(--lp-navy); color: #fff; padding: 30px 0 34px; }
.lp-close h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.lp-close p { color: #d7dbef; margin: 0 0 16px; }
.lp-close .lp-card { max-width: 480px; }

/* quiz */
.lp-quiz .lp-progress { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; color: var(--lp-ink-2); font-weight: 600; }
.lp-quiz .lp-bar { flex: 1; height: 6px; background: #e4e6f2; border-radius: 3px; overflow: hidden; }
.lp-quiz .lp-bar i { display: block; height: 100%; width: 33%; background: var(--lp-purple); border-radius: 3px; transition: width .25s; }
.lp-step[hidden] { display: none !important; }
.lp-step h2 { font-size: 20px; margin: 0 0 12px; }
.lp-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0 0 10px; padding: 12px 14px;
  background: #fff; border: 2px solid #c9cde3; border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--lp-ink);
  text-align: left; cursor: pointer; }
.lp-choice:hover, .lp-choice[aria-pressed="true"] { border-color: var(--lp-purple); background: var(--lp-purple-soft); }
.lp-choice small { display: block; font-weight: 400; font-size: 14px; color: var(--lp-ink-2); margin-top: 2px; }
.lp-choice .lp-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--lp-purple-soft); font-size: 20px; }
.lp-back { background: none; border: 0; color: var(--lp-purple); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0; cursor: pointer; }

/* sticky phone CTA: appears once the hero form is out of view */
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 16, 40, .96); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(110%); transition: transform .25s ease; }
.lp-sticky.on { transform: none; }
.lp-sticky .lp-btn { min-height: 50px; font-size: 17px; }

/* footer */
.lp-foot { background: #0a0e22; color: #aab0cc; font-size: 13.5px; padding: 22px 0 90px; }
.lp-foot p { margin: 0 0 8px; }
.lp-foot a { color: #cfd3ea; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lp-foot nav a, .lp-foot nav button { min-height: 32px; display: inline-flex; align-items: center; }
.lp-foot button { background: none; border: 0; color: #cfd3ea; text-decoration: underline; font: inherit; padding: 0; cursor: pointer; }

/* cookie bar: compact on landing pages so it never hides the form */
.lp-body #cookie-consent { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important; }
.lp-body #cookie-consent > div { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
.lp-body #cookie-consent .text-sm { font-size: 12.5px !important; line-height: 1.35; }
.lp-body #cookie-consent button { padding: 6px 12px !important; font-size: 13px !important; min-height: 36px; }

@media (min-width: 760px) {
  .lp-hero { padding: 40px 0 56px; }
  .lp-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
  .lp-hero h1 { font-size: 46px; }
  .lp-sub { font-size: 19px; }
  .lp-hide-sm { display: block; }
  .lp-card { padding: 26px 24px 22px; }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-steps li { grid-template-columns: 1fr; }
  .lp-proof { grid-template-columns: repeat(3, 1fr); }
  .lp-sec { padding: 56px 0; }
  .lp-sec h2, .lp-close h2 { font-size: 30px; }
  .lp-sticky { display: none; }
  .lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .lp-foot { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-sticky, .lp-quiz .lp-bar i, .lp-faq summary::after, .lp-btn { transition: none; }
}

/* success message from /api/contact (its markup is shared with the dark site pages) */
.lp-ok, .lp-ok p, .lp-ok strong { color: #0b4d36 !important; }
.lp-ok a { color: #0b4d36 !important; text-decoration: underline; }
.lp-ok .font-semibold { font-weight: 700; font-size: 17px; }
.lp-ok:focus { outline: 3px solid #22c38e; outline-offset: 2px; }

/* headings carry weight on every lp section; the site theme sets h2 light */
.lp-body h1, .lp-body h2 { font-weight: 700; }
/* the closing band is dark, its form card is not */
.lp-close .lp-card h2 { color: var(--lp-ink); }
.lp-close .lp-card p.lp-risk, .lp-close .lp-card .lp-card-sub { color: var(--lp-ink-2); margin: 10px 0 0; }
.lp-close .lp-card p.lp-legal { color: #6b7190; margin: 8px 0 0; }
.lp-close .lp-card p.lp-err { color: #b0192f; margin: 5px 0 0; }
.lp-close .lp-card .lp-risk b { color: var(--lp-ink); }
.lp-tile { padding: 11px 12px 4px; gap: 4px; }
.lp-tile .lp-links { gap: 0 14px; }
.lp-tile .lp-links a { min-height: 40px; }
.lp-score span { font-size: 12.5px; }
@media (min-width: 760px) { .lp-proof { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
