/* Campaign landing pages (/accountants/vat, /accountants/bas): one statement, gated demo, quotes, book button. */
.lp .hero__body { padding-top: 56px; }
.hero h1.lp-statement { margin: 20px auto 0; max-width: none; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; text-wrap: balance; }
@media (min-width: 1100px) { .hero h1.lp-statement { white-space: nowrap; } }
.lp .lp-sub { max-width: none; margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); }
@media (min-width: 1100px) { .lp .lp-sub { white-space: nowrap; } }
.lp .hero__stage { margin-top: 36px; padding-bottom: 190px; }
@media (max-width: 700px) { .lp .hero__stage { padding-bottom: 120px; } }

/* Demo frame and gate */
.lp-video { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, #3b2f63 0%, #161618 60%); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12); }
.lp-video iframe, .lp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Poster: a still from the demo (product plus Oli's camera), so it reads as a real product walkthrough. */
.lp-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: url(/assets/new/demo-poster.jpg) center / cover no-repeat; color: #fff; font: inherit; cursor: pointer; }
.lp-play__btn { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--lilac); box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 8px rgba(195,178,240,.35); transition: transform .15s; }
.lp-play:hover .lp-play__btn { transform: scale(1.06); }

.lp-gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,15,16,.94); }
/* No backdrop-filter here: in Chrome it breaks the hero's overflow clip and paints the glow below the wave. */
.lp-gate[hidden] { display: none; }
.lp-gate form { width: 100%; max-width: 440px; text-align: left; }
.lp-gate h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.lp-gate__lead { margin: 0 0 16px; font-size: 14px; color: var(--on-dark); }
.lp-gate__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-gate label { display: block; font-size: 13px; color: rgba(255,255,255,.75); }
.lp-gate input, .lp-gate select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 15px; }
.lp-gate select option { color: #1a1a1a; }
.lp-gate input:focus, .lp-gate select:focus { outline: 2px solid var(--lilac); outline-offset: 1px; }
.lp-gate .btn { width: 100%; margin-top: 14px; justify-content: center; }
.lp-gate__err { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: #ffb4b4; }
.lp-gate__fine { margin: 8px 0 0; font-size: 12px; color: rgba(255,255,255,.55); }
.lp-gate__fine a { color: inherit; }
.lp-gate__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: rgba(255,255,255,.7); font-size: 24px; line-height: 1; cursor: pointer; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-newtab { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
.lp-newtab a { color: var(--lilac); font-weight: 700; }

/* Quotes on dark, then the button */
.lp-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 40px auto 0; text-align: left; }
.lp-quotes figure { margin: 0; padding: 24px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.25); }
.lp-quotes blockquote { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: #fff; }
.lp-quotes figcaption { margin-top: 12px; font-size: 14px; color: var(--on-dark); }
.lp .hero__ctas { margin-top: 36px; }

/* Phone: the form fills the frame, which is too short at 16:9, so it becomes a full-screen sheet */
@media (max-width: 860px) {
  .lp-gate { position: fixed; z-index: 100; overflow-y: auto; }
}
@media (max-width: 700px) {
  .lp-quotes { grid-template-columns: 1fr; }
  .lp-gate__grid { grid-template-columns: 1fr; }
  .lp-play__btn { width: 64px; height: 64px; }
}

/* The four feature sections as a 2x2 grid of tiles: heading and line on top, product crop below. */
.v3-rows.lp-tiles { grid-template-columns: 1fr 1fr; gap: 64px 40px; padding-top: 96px; }
.lp-tiles .v3-row, .lp-tiles .v3-row--flip { grid-template-columns: 1fr; gap: 20px; align-content: start; align-items: start; }
.lp-tiles .v3-row--flip > .v3-row__text { order: 0; }
.lp-tiles .v3-row h2 { font-size: clamp(24px, 2.2vw, 30px); }
.lp-tiles .v3-row__text p { margin-top: 8px; font-size: 16px; max-width: 32rem; }
@media (max-width: 900px) { .v3-rows.lp-tiles { grid-template-columns: 1fr; gap: 56px; padding-top: 72px; } }
.lp-tiles .crop { padding: 32px 28px 0; }
/* Line the tiles up: each tile spans two parent rows (text, panel) via subgrid, so panels start and end level. */
@media (min-width: 901px) {
  .lp-tiles .v3-row, .lp-tiles .v3-row--flip { grid-row: span 2; grid-template-rows: subgrid; row-gap: 20px; }
  .lp-tiles .crop { align-self: stretch; }
}
/* Every tile panel the same size: a fixed-height panel with the white window filling it and running off the bottom edge. */
@media (min-width: 901px) {
  /* The window sits fully inside the lilac panel (border all round), and both windows in a row end at the same line:
     the panel stretches to its row and the window fills it, trimmed just below the busiest window's content. */
  .lp-tiles .crop { height: auto; padding: 28px; display: flex; flex-direction: column; }
  .lp-tiles .crop__win { flex: 1 1 auto; margin-bottom: 0; }
  .v3.v3 .lp-tiles .crop__win { padding-bottom: 4px; }
  /* Room for three lines in every tile, so all four panels start at the same point whether the text runs to two or three. */
  .lp-tiles .v3-row__text p { min-height: calc(3 * 1.55em); line-height: 1.55; }
  /* Denser product windows so the busiest one fits the shorter panel. */
  .v3.v3 .lp-tiles .crop__win { font-size: 13.5px; }
  .v3.v3 .lp-tiles .cw__bar { height: 46px; font-size: 13.5px; }
  .v3.v3 .lp-tiles .cw__bar b { font-size: 14.5px; }
  .v3.v3 .lp-tiles .cw__body { padding: 16px 20px 20px; }
  .v3.v3 .lp-tiles .cw-steps { gap: 8px; }
  .lp-tiles .v3-q { margin-top: 14px; padding: 10px 14px; font-size: 13px; }
  .lp-tiles .v3-acts { margin-top: 12px; }
  .lp-tiles .v3-jobs li { padding: 11px 20px; }
}
