/* ==========================================================================
   WTH Landing Pages: base  (values taken from the Figma "AI and You Landing Page", frame 3)
   - NO font-family anywhere: body/p = Manrope, h1-h6 and .h1-.h6 = Sora, buttons = Manrope (all from the theme).
   - Where the design uses Sora outside a heading (labels, numbers, names) the markup carries the theme's .h6 class.
   - Red = the theme's --color-primary (#992400). Other colours are the design's.
   ========================================================================== */

.wth-lp-page {
  --lp-navy: #021C4D;
  --lp-slate: #5C6B84;
  --lp-slate-soft: #7C89A0;
  --lp-red: var(--color-primary, #992400);
  --lp-yellow: #FACC15;
  --lp-green: #00963E;
  --lp-border: #E3E6EE;
  --lp-input-border: #D5D9E3;
  --lp-tint: rgba(2, 28, 77, 0.05);
  --lp-tint-line: rgba(2, 28, 77, 0.1);
  --lp-ink: #282828;
  --lp-role: #B7C2D6;
}

/* ---------- Locked state (set on <html> by the inline head script) ---------- */
/* Until a form is submitted: the header shows the logo only (menu + buttons hidden). The page body and the footer are always visible. */
html.lp-locked #header #mainmenu,
html.lp-locked #header .right-links,
html.lp-locked #header .user-account-menu,
html.lp-locked #header .mobile-menu-button,
html.lp-locked #header .network-btns {
  display: none !important;
}

/* ---------- Container + shared type ---------- */
.lp-page { overflow-x: clip; }
.lp-page .wrap.lp-wrap { max-width: 1204px; padding: 0 32px; } /* content = 1140px, as in the Figma */
@media (max-width: 720px) { .lp-page .wrap.lp-wrap { padding: 0 20px; } }

.lp-page p { margin: 0; font-size: 16px; line-height: 1.6; }
.lp-page h1, .lp-page h2, .lp-page h3 { color: var(--lp-navy); margin: 0; }
.lp-page blockquote { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.lp-page ul { list-style: none; margin: 0; padding: 0; }
.lp-page figure { margin: 0; }
.lp-page img { max-width: 100%; height: auto; }
.lp-page b.h6 { display: block; }

.lp-page .lp-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; color: var(--lp-red); }
.lp-page .lp-h2 { font-size: 28px; line-height: 1.22; margin: 0; letter-spacing: normal; }
@media (max-width: 720px) { .lp-page .lp-h2 { font-size: 22px; } }

.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-page a:focus-visible, .lp-page button:focus-visible, .lp-page input:focus-visible,
.lp-sticky a:focus-visible { outline: 2.5px solid var(--lp-red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Form card ---------- */
.lp-form-card { position: relative; z-index: 1; }
.lp-card-head { margin-bottom: 14px; }

.lp-page .lp-label { display: block; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; line-height: 1.6; color: var(--lp-navy); }
.lp-form-card .lp-input { display: block; width: 100%; padding: 12px 14px; font-size: 16px; line-height: 1.4; border-radius: 8px; border: 1px solid var(--lp-input-border); background: #fff; color: var(--lp-ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.lp-form-card .lp-input::placeholder { color: #A9B1BF; }
.lp-form-card .lp-input:focus { border-color: var(--lp-navy); box-shadow: 0 0 0 3px rgba(2, 28, 77, 0.08); outline: none; }
.lp-form-card .lp-input[aria-invalid="true"] { border-color: var(--lp-red); }

.lp-page .lp-error { font-size: 12.5px; font-weight: 600; color: var(--lp-red); margin: 6px 0 0; line-height: 1.35; }
.lp-page .lp-error:empty { display: none; }

.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Theme .button / .arrow-btn provide the red arrow button; only layout is set here. */
.lp-form-card .lp-submit { width: 100%; margin-top: 24px; padding: 8px 8px 8px 18px; font-size: 1rem; text-align: center; white-space: normal; }
.lp-form-card .lp-submit:after { width: 30px; }
.lp-form-card .lp-submit:disabled { opacity: 0.6; cursor: default; }

.lp-page .lp-consent { font-size: 11px; line-height: 1.6; margin-top: 12px; color: var(--lp-slate-soft); }
.lp-page .lp-consent a { text-decoration: underline; color: inherit; }

/* Variant: hero (white card, cover on the corner) */
.lp-form-card--hero { background: #fff; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; box-shadow: 0 26px 60px -20px rgba(10, 14, 22, 0.55); padding: 22px 24px 20px; }
.lp-form-card--hero .lp-card-head { padding-right: 96px; padding-top: 5px; }
.lp-page .lp-form-card--hero .lp-card-title { font-size: 18px; line-height: 1.22; margin: 0 0 4px; }
.lp-page .lp-form-card--hero .lp-card-sub { font-size: 13.5px; line-height: 1.5; color: var(--lp-slate); }
.lp-card-cover { position: absolute; z-index: 2; top: -44px; right: -26px; width: 112px; height: auto; border-radius: 3px; transform: rotate(5deg); box-shadow: 0 16px 30px -12px rgba(26, 36, 55, 0.55); }

/* Variant: panel (tinted, second form) */
.lp-form-card--panel { background: var(--lp-tint); border: 1px solid var(--lp-tint-line); border-radius: 16px; padding: 36px 32px; }
.lp-form-card--panel .lp-card-head { margin-bottom: 24px; }
.lp-page .lp-form-card--panel .lp-card-title { font-size: 24px; line-height: 1.15; margin: 0; }
.lp-form-card--panel .lp-consent { margin-top: 12px; }

/* ---------- Success state (Figma 159:765 hero card, 221:2744 panel) ---------- */
.lp-success[hidden] { display: none; }
.lp-success__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lp-form-card--hero .lp-success__head { padding-right: 96px; padding-top: 5px; }
.lp-success__icon { display: block; flex: 0 0 24px; line-height: 0; }
.lp-page .lp-success h2 { font-size: 24px; line-height: 1.2; margin: 0; }
.lp-page .lp-success h2:focus { outline: none; }
.lp-page .lp-success p { font-size: 16px; line-height: 1.6; color: var(--lp-slate); margin: 0 0 12px; }
.lp-page .lp-success p strong, .lp-page .lp-success p.lp-success__strong { font-weight: 700; color: var(--lp-navy); }
.lp-page .lp-success p:last-child { margin-bottom: 0; }
/* hero card: keep the first lines clear of the cover that overlaps the card's top-right corner */
.lp-form-card--hero .lp-success__intro { padding-right: 96px; }
/* panel: text centred, button full width below */
.lp-form-card--panel .lp-success__body { text-align: center; }
.lp-page .lp-success p.lp-success__note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--lp-slate-soft); }
.lp-success__note a { color: inherit; text-decoration: underline; }
/* "Taking you to ... in 5 seconds" note under the button */
.lp-page .lp-success p.lp-success__redirect { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--lp-slate-soft); }
.lp-success__redirect[hidden] { display: none; }
.lp-form-card--panel .lp-success p.lp-success__redirect { text-align: center; }
/* CTA button: the theme's .button.arrow-btn, full width like the form button */
.lp-success .lp-success__cta { width: 100%; margin-top: 20px; padding: 8px 8px 8px 18px; font-size: 1rem; text-align: center; white-space: normal; }
.lp-success .lp-success__cta:after { width: 30px; }

@media (max-width: 720px) {
  .lp-form-card--hero { padding: 16px 16px 14px; }
  .lp-form-card--hero .lp-card-head { padding-right: 72px; min-height: 52px; }
  .lp-form-card--hero .lp-success__head { padding-right: 72px; }
  .lp-form-card--hero .lp-success__intro { padding-right: 72px; }
  .lp-card-cover { top: -26px; right: -4px; width: 76px; }
  .lp-form-card--panel { padding: 24px 20px; }
  .lp-page .lp-form-card--panel .lp-card-title { font-size: 21px; }
  .lp-page .lp-success h2 { font-size: 21px; }
  .lp-page .lp-success p { font-size: 15px; }
}

/* ---------- Phone sticky bar ---------- */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 12px; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.97); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-top: 1px solid var(--lp-tint-line); padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 26px -18px rgba(26, 36, 55, 0.4);
  transform: translateY(105%); visibility: hidden; transition: transform 260ms ease, visibility 0s linear 260ms;
}
.lp-sticky.on { transform: translateY(0); visibility: visible; transition: transform 260ms ease, visibility 0s; }
.lp-sticky__lbl { font-size: 13px; font-weight: 600; color: var(--lp-navy); line-height: 1.3; min-width: 0; }
.lp-sticky__lbl small { display: block; font-weight: 400; font-size: 11.5px; color: var(--lp-slate-soft); }
.lp-sticky .lp-sticky__btn { padding: 12px 18px; font-size: 14px; flex: 0 0 auto; }
@media (max-width: 720px) {
  .lp-sticky { display: flex; }
  .wth-lp-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .wth-lp-page.lp-no-sticky { padding-bottom: 0; }
}
@media (max-width: 400px) { .lp-sticky__lbl small { display: none; } }
@media (prefers-reduced-motion: reduce) { .lp-sticky, .lp-sticky.on { transition: none; } }
html.lp-converted .lp-sticky { display: none !important; }
html.lp-converted .wth-lp-page { padding-bottom: 0; }
