/* The landing test on the /for ad pages (App\Support\Marketing\IndustryLandingTest). Every variant is in the one cached
   page; landing-variant-head.js sets <html data-lpv="a".."f"> before the first paint and these rules show that one.
   With no data-lpv (no script) only the control shows. Tokens and type follow marketing-industry.css (.ip). */
.lp-only { display: none; }
html[data-lpv="b"] .lp-b, html[data-lpv="c"] .lp-c, html[data-lpv="d"] .lp-d, html[data-lpv="e"] .lp-e, html[data-lpv="f"] .lp-f { display: block; }
html[data-lpv]:not([data-lpv="a"]) .lp-control { display: none; }
html[data-lpv="d"]:not([data-lp-full]) .lp-long { display: none; }

/* The headline carries on from the ad the visitor came from (data-lpad), or the page's own. */
.lp-ad { display: none; }
html:not([data-lpad]) .lp-ad-default,
html[data-lpad="tr9"] .lp-ad-tr9, html[data-lpad="pd7"] .lp-ad-pd7, html[data-lpad="gp7"] .lp-ad-gp7,
html[data-lpad="cl3"] .lp-ad-cl3, html[data-lpad="ph3"] .lp-ad-ph3 { display: inline; }

/* Hero */
.lp-hero { padding-block: clamp(20px, 4.4vw, 76px) clamp(36px, 5vw, 88px); background: var(--ground); border-bottom: 1px solid var(--line); }
.ip .lp-title { font-size: clamp(31px, 4.4vw, 62px); letter-spacing: -.048em; line-height: 1.04; }
.lp-lead { max-width: 560px; margin-top: 16px; color: var(--muted); font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.55; text-wrap: pretty; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(40px, 5vw, 80px); align-items: end; }
.lp-short { max-width: 760px; }
.lp-h2.lp-h2 { margin-top: 30px; font-size: 19px; letter-spacing: -.025em; line-height: 1.3; }

/* The email form */
.lp-form { display: grid; gap: 10px; width: 100%; max-width: 520px; }
.lp-short .lp-form { margin-top: 24px; }
.lp-label { color: var(--ink); font-size: 15px; font-weight: 550; }
.lp-row { display: grid; gap: 10px; }
.lp-input { width: 100%; height: 54px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; letter-spacing: -.01em; box-shadow: 0 1px 2px #1c1f2a0d; transition: border-color .2s, box-shadow .2s; }
.lp-input::placeholder { color: var(--faint); }
.lp-input:hover { border-color: var(--hover); }
.lp-input:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 4px #191b221a; }
.lp-input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 4px #b4231814; }
.lp-form .ip-button { width: 100%; min-height: 54px; border: 0; cursor: pointer; }
.lp-form .ip-button[aria-busy="true"] { opacity: .75; cursor: progress; transform: none; }
.lp-form-inline .lp-row { grid-template-columns: minmax(0, 1fr) auto; }
.lp-form-inline .ip-button { width: auto; padding-inline: 22px; }
.lp-form-inline .lp-input { padding-inline: 18px; }
.lp-error { color: #b42318; font-size: 15px; font-weight: 500; line-height: 1.45; }
.lp-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lp-turnstile:empty { display: none; }
.lp-note { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.lp-optout { display: inline-flex; justify-self: start; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.lp-optout input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.lp-terms { color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.lp-terms a { color: inherit; text-decoration: underline; text-decoration-color: #b4bcc6; text-underline-offset: 3px; }
.lp-terms a:hover { color: var(--ink); }

/* D: three things from day one, and the way into the full page */
.lp-day-one { display: grid; gap: 14px; margin-top: 14px; }
.lp-day-one li { display: flex; align-items: flex-start; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.lp-day-one strong { display: block; margin-bottom: 1px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.lp-full { display: inline-flex; min-height: 44px; align-items: center; margin-top: 18px; padding: 0; border: 0; background: none; }

/* E: the end of the job, in the film's own screens */
.lp-e-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "copy shots" "form shots"; gap: 0 clamp(40px, 5vw, 80px); align-items: start; }
.lp-e-copy { grid-area: copy; }
.lp-e-form { grid-area: form; margin-top: 30px; }
.lp-result { grid-area: shots; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-content: start; }
.lp-shot { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.lp-shot-signed { grid-row: span 2; }
.lp-shot-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--silver); box-shadow: var(--shadow-tile); }
.lp-shot-signed .lp-shot-frame { aspect-ratio: 4 / 5.6; }
.lp-shot-call .lp-shot-frame, .lp-shot-invoice .lp-shot-frame { aspect-ratio: 16 / 9.4; }
.lp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-shot-signed img { object-position: 50% 0; }
.lp-shot-call img { transform: scale(1.75); transform-origin: 84% 30%; }
.lp-shot-invoice img { transform: scale(1.8); transform-origin: 94% 2%; }
.lp-shot figcaption { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.lp-shot figcaption strong { margin-right: 4px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-result-note { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; line-height: 1.45; }

/* F: one question, then the email field */
.lp-answers { display: grid; gap: 10px; margin-top: 22px; }
.lp-f .lp-lead { margin-top: 10px; }
.lp-answer { display: flex; align-items: center; min-height: 54px; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); font-size: 16.5px; font-weight: 500; letter-spacing: -.012em; line-height: 1.3; text-align: left; box-shadow: 0 1px 2px #1c1f2a0d; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.lp-answer:hover { border-color: var(--hover); box-shadow: var(--shadow-tile); transform: translateY(-1px); }
.lp-skip, .lp-change { min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; text-decoration: underline; text-decoration-color: #b4bcc6; text-underline-offset: 4px; }
.lp-skip:hover, .lp-change:hover { color: var(--ink); }
.lp-f-next { margin-top: 22px; }
.lp-f-next .lp-form { margin-top: 0; }
.lp-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid var(--ink); border-radius: 16px; background: #fff; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.lp-picked strong { color: var(--ink); font-weight: 600; }
.lp-picked .lp-change { min-height: 0; margin: 0; }
[data-lp-question].is-answered .lp-answers, [data-lp-question].is-answered .lp-skip, [data-lp-question].is-open .lp-skip { display: none; }

/* C on wider screens: the film is sized to the screen's height (marketing-industry.css), so it leaves room under it
   for the heading and the form, which would otherwise start below the fold. */
@media (min-width: 768px) {
    html[data-lpv="c"] .ip-film { --ip-bar: 200px; }
    .lp-c-grid { margin-top: 28px; align-items: start; }
    .ip .lp-c .lp-title { font-size: clamp(31px, 3.2vw, 46px); }
}
@media (min-width: 560px) {
    .lp-row { grid-template-columns: minmax(0, 1fr) auto; }
    .lp-form .ip-button { width: auto; }
    .lp-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .lp-grid { grid-template-columns: minmax(0, 1fr); }
    .lp-grid .lp-form, .lp-e-form .lp-form { max-width: 560px; }
    .lp-e-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "shots" "form"; }
    .lp-result { max-width: 620px; margin-top: 24px; }
}
@media (max-width: 640px) {
    .lp-hero .lp-lead { margin-top: 12px; }
    .lp-grid { gap: 20px; }
    .lp-c-grid { margin-top: 22px; }
    .ip .lp-c .lp-title { font-size: 27px; }
    .lp-result { gap: 10px; margin-top: 16px; }
    .lp-shot-signed .lp-shot-frame { aspect-ratio: 4 / 5; }
    .lp-e-form { margin-top: 18px; }
    .lp-h2.lp-h2 { margin-top: 20px; }
    .lp-day-one { gap: 12px; }
    .lp-short .lp-form { margin-top: 20px; }
}
