/* Landing builder (plus/landing_builder.py): the design options of a landing template on the visitor page
   (landing/file_question.html, body.lpb). Every rule here either keys on a non-default data attribute or falls back to
   the value modern.css had, so templates saved before the builder look exactly as before. */
body.lpb [hidden] { display: none !important; }
body.lpb { font-family: var(--lp-font-body, var(--hr-font)); }
body.lpb .lp-intro h1 { font-family: var(--lp-font-head, inherit); }
body.lpb .lp-card { border-radius: var(--lp-card-radius, 18px); border-color: var(--lp-card-border, rgba(127, 127, 127, .22)); }
body.lpb[data-shadow="0"] .lp-card { box-shadow: none; }
body.lpb .lp-button { border-radius: var(--lp-btn-radius, 10px); color: var(--lp-btn-text, #fff) !important; }
body.lpb[data-btn="1"] .lp-button { background: var(--lp-btn); }
body.lpb[data-btn="1"] .lp-button:hover { background: color-mix(in srgb, var(--lp-btn) 86%, #000); }
body.lpb[data-btn="1"] .lp-input:focus { border-color: var(--lp-btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-btn) 20%, transparent); }
body.lpb[data-btn="1"] .lp-consent input { accent-color: var(--lp-btn); }

/* title size + alignment */
body.lpb[data-tsize="s"] .lp-intro h1 { font-size: clamp(24px, 3vw, 34px); }
body.lpb[data-tsize="l"] .lp-intro h1 { font-size: clamp(36px, 5.6vw, 64px); }
body.lpb[data-align="left"] .lp-intro { text-align: left; }
body.lpb[data-align="center"] .lp-intro { text-align: center; }
body.lpb[data-align="center"] .lp-benefits { align-items: center; }
body.lpb[data-align="center"] .lp-photo { margin-left: auto; margin-right: auto; }
body.lpb[data-logo="center"] .lp-header { display: flex; justify-content: center; }

/* benefits, trust line, thank-you */
.lp-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; text-align: left; }
.lp-benefits i { color: var(--lp-btn, #2f5bea); font-size: 18px; line-height: 1.3; flex-shrink: 0; }
.lp-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; opacity: .7; text-align: center; }
.lp-thanks { text-align: center; padding: 18px 4px; }
.lp-thanks i { font-size: 40px; color: var(--lp-btn, #16a34a); }
.lp-thanks p { font-size: 17px; font-weight: 600; margin: 10px 0 16px; white-space: pre-line; }
.lp-thanks-bar { display: block; height: 4px; border-radius: 4px; background: rgba(127, 127, 127, .2); overflow: hidden; position: relative; }
.lp-thanks-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--lp-btn, #2f5bea); border-radius: 4px; animation: lp-load 1.1s ease-in-out infinite; }
@keyframes lp-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* backgrounds */
body.lpb[data-bg="gradient"] { background: linear-gradient(var(--lp-angle, 135deg), var(--lp-bg), var(--lp-bg2, var(--lp-bg))); background-attachment: fixed; }
body.lpb[data-bg="image"] { background: linear-gradient(rgba(0, 0, 0, var(--lp-overlay, .4)), rgba(0, 0, 0, var(--lp-overlay, .4))), var(--lp-bg-image) center / cover no-repeat var(--lp-bg); background-attachment: fixed; }
body.lpb[data-bg="gradient"] .lp-card, body.lpb[data-bg="image"] .lp-card { background: color-mix(in srgb, var(--lp-bg) 82%, #fff 18%); }

/* layout: split – text on a coloured pane, the form on the other half */
body.lpb[data-layout="split"] .lp-main { padding: 0; align-items: stretch; }
body.lpb[data-layout="split"] .lp-grid { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
body.lpb[data-layout="split"] .lp-intro { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 6vw, 88px); background: color-mix(in srgb, var(--lp-bg) 93%, var(--lp-text) 7%); }
body.lpb[data-layout="split"] .lp-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
body.lpb[data-layout="split"] .lp-side .lp-card { width: 100%; max-width: 420px; }
body.lpb[data-layout="split"][data-bg="gradient"], body.lpb[data-layout="split"][data-bg="image"] { background: var(--lp-bg); }
body.lpb[data-layout="split"][data-bg="gradient"] .lp-intro { background: linear-gradient(var(--lp-angle, 135deg), var(--lp-bg), var(--lp-bg2, var(--lp-bg))); }
body.lpb[data-layout="split"][data-bg="image"] .lp-intro { background: linear-gradient(rgba(0, 0, 0, var(--lp-overlay, .4)), rgba(0, 0, 0, var(--lp-overlay, .4))), var(--lp-bg-image) center / cover no-repeat var(--lp-bg); }
body.lpb[data-layout="split"] .lp-photo { max-width: 320px; }

/* layout: hero – big centred headline, the form floating over the background */
body.lpb[data-layout="hero"] .lp-main { padding: 72px 20px; }
body.lpb[data-layout="hero"] .lp-grid { grid-template-columns: minmax(0, 680px); justify-content: center; gap: 28px; }
body.lpb[data-layout="hero"]:not([data-align="left"]) .lp-intro { text-align: center; }
body.lpb[data-layout="hero"]:not([data-align="left"]) .lp-benefits { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
body.lpb[data-layout="hero"] .lp-photo { max-width: 160px; margin-left: auto; margin-right: auto; }
body.lpb[data-layout="hero"] .lp-side .lp-card { max-width: 440px; margin: 0 auto; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); }
body.lpb[data-layout="hero"][data-shadow="0"] .lp-side .lp-card { box-shadow: none; }

/* layout: document teaser – a blurred page next to the form */
.lp-teaser { display: none; }
body.lpb[data-layout="teaser"] .lp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "teaser intro" "teaser side"; gap: 20px 56px; align-items: start; }
body.lpb[data-layout="teaser"] .lp-teaser { display: block; grid-area: teaser; align-self: center; }
body.lpb[data-layout="teaser"] .lp-intro { grid-area: intro; align-self: end; }
body.lpb[data-layout="teaser"] .lp-side { grid-area: side; }
body.lpb[data-layout="teaser"] .lp-intro .lp-doc, body.lpb[data-layout="teaser"] .lp-photo { display: none; }
body.lpb[data-layout="teaser"] .lp-intro h1 { font-size: clamp(26px, 3.2vw, 38px); }
body.lpb[data-layout="teaser"][data-tsize="l"] .lp-intro h1 { font-size: clamp(32px, 4.4vw, 50px); }
.lp-teaser-page {
    position: relative; max-width: 440px; margin: 0 auto; aspect-ratio: 1 / 1.3; border-radius: 10px; overflow: hidden;
    background: #fff; color: #0f172a; padding: 28px 30px; box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 12px 12px 0 -2px rgba(127, 127, 127, .18), 24px 24px 0 -4px rgba(127, 127, 127, .1);
    transform: rotate(-1.5deg);
}
.lp-teaser-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-teaser-name i { color: var(--lp-btn, #2f5bea); font-size: 18px; }
.lp-teaser-lines { filter: blur(2.5px); }
.lp-teaser-lines i, .lp-teaser-lines b { display: block; height: 9px; border-radius: 4px; background: #cbd5e1; margin-bottom: 11px; width: 100%; }
.lp-teaser-lines b { height: 70px; background: linear-gradient(135deg, color-mix(in srgb, var(--lp-btn, #2f5bea) 35%, #fff), #e2e8f0); margin: 18px 0; }
.lp-teaser-lock {
    position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; background: rgba(15, 23, 42, .86); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.lp-teaser-pages { text-align: center; margin-top: 14px; font-size: 13px; opacity: .65; }

@media (max-width: 860px) {
    body.lpb[data-layout="split"] .lp-grid { grid-template-columns: 1fr; }
    body.lpb[data-layout="split"] .lp-intro { padding: 36px 22px; }
    body.lpb[data-layout="split"] .lp-side { padding: 28px 18px 40px; }
    body.lpb[data-layout="hero"] .lp-main { padding: 40px 18px; }
    body.lpb[data-layout="teaser"] .lp-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "teaser" "side"; gap: 22px; }
    body.lpb[data-layout="teaser"] .lp-teaser-page { max-width: 260px; padding: 18px 20px; }
    body.lpb[data-layout="teaser"] .lp-teaser-lock { font-size: 11.5px; padding: 8px 12px; }
    body.lpb[data-bg] { background-attachment: scroll; }
}

/* a logo that barely contrasts with the header (dark on dark, light on light) sits on a light plate (owner 2026-11-10) */
.lpb .lp-logo.lp-logo-plate { background: #ffffff; padding: 6px 12px; border-radius: 10px; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); box-sizing: content-box; }
