/* loadingsense.com's pages (the LoadingSense home and each Sense's landing page): what they share. Each page keeps
   its own sections in its template. Colours and buttons come from sense.css. */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { overflow-x: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn-xl { height: 56px; font-size: 17px; padding: 0 26px; border-radius: 14px; font-weight: 600; }
.ls-mark { width: 1em; height: 1.5em; fill: var(--blue); flex: none; }
.ls-mark.spin { transform-origin: 50% 50%; animation: ls-turn 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ls-turn { 0% { transform: rotate(0); } 50%, 100% { transform: rotate(180deg); } }

/* top bar: glass, with the CTA always in reach */
.tb { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 24px;
  padding: 0 20px; background: rgba(242, 248, 254, .78); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4); transition: box-shadow .3s; }
.tb.scrolled { box-shadow: 0 1px 0 var(--divider); }
.tb .logo { height: 26px; display: block; }
.tb nav { display: flex; gap: 22px; margin-left: 12px; }
.tb nav a { color: var(--text-2); font-weight: 500; }
.tb nav a:hover { color: var(--text); }
.tb-right { margin-left: auto; display: flex; gap: 8px; }
.tb-get { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s, transform .3s; }
.tb.scrolled .tb-get { opacity: 1; transform: none; pointer-events: auto; }

/* hero: copy left, the page's picture right */
.hx { position: relative; padding: 92px 0 96px; isolation: isolate; }
/* each page's faded photograph (Broker Sense: a suburb from above; LoadingSense: layered paper), fading in from the right */
.hx-bg { position: absolute; inset: 0; z-index: -2; background: right center / auto 100% no-repeat; opacity: .42;
  -webkit-mask-image: linear-gradient(to right, transparent 38%, #000 72%), linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent);
  mask-image: linear-gradient(to right, transparent 38%, #000 72%), linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hx-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hx-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 15px; color: var(--text-2); }
.hx-status .ls-mark { width: 12px; height: 18px; }
.hx-status b { color: var(--text); font-weight: 600; }
a.hx-status:hover b { color: var(--blue); }
.hx h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: .98; letter-spacing: -0.05em; font-weight: 800; margin: 0 0 24px; }
.hx-em { color: var(--blue); padding-bottom: .04em; white-space: nowrap;
  background: linear-gradient(rgba(8, 102, 255, .18), rgba(8, 102, 255, .18)) left bottom / 100% .1em no-repeat; }
.motion .hx-em { background-size: 0 .1em; animation: sweep .9s .5s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes sweep { to { background-size: 100% .1em; } }
.hx-lead { font-size: 19px; line-height: 1.5; color: var(--text-2); margin: 0 0 30px; max-width: 31em; }
.hx-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hx-link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.hx-link span { transition: transform .2s; } .hx-link:hover span { transform: translateX(4px); }
.hx-fine { margin: 22px 0 0; color: var(--text-3); font-size: 14px; }
/* The four assistants stay on one line: where the names won't fit, the logos stand alone (names kept for readers). */
.ai { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; color: var(--text-2); font-size: 14px; font-weight: 600;
  white-space: nowrap; container-type: inline-size; }
.ai > span:first-child { color: var(--text-3); font-weight: 400; }
.ai span.a { display: inline-flex; align-items: center; gap: 7px; }
.ai img { width: 18px; height: 18px; display: block; }
@container (max-width: 530px) {
  .ai .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ai img { width: 20px; height: 20px; }
}

/* a lender line and how it fits: the live answer (Broker Sense) and the comparison (home) */
.fit { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px;
  font-weight: 600; white-space: nowrap; }
.fit.fits { background: var(--green-tint); color: var(--green); }
.fit.fits_if { background: var(--amber-tint); color: var(--amber); }
.fit.ask, .fit.exception { background: var(--blue-tint); color: var(--blue); }
.fit.out { background: var(--red-tint); color: var(--red); }
.lrows { display: grid; gap: 8px; margin-top: 8px; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--surface-2); }
.lrow b { font-size: 14px; }
.lrow .why { grid-column: 1; color: var(--text-2); font-size: 13px; }
.lrow .src { grid-column: 2; grid-row: 2; justify-self: end; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.lrow .src::before { content: "↗ "; }

/* sections */
.sec { padding: 112px 0 0; }
.sec h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 14px; }
.sec-lead { font-size: 18px; line-height: 1.5; color: var(--text-2); margin: 0; max-width: 34em; }

/* the close */
.cl { position: relative; margin: 128px auto 0; padding: 96px 20px 104px; text-align: center; isolation: isolate; }
.cl::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 100%); height: 100%;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--blue-tint), transparent); }
.cl h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; font-weight: 800; margin: 0 0 26px; line-height: 1; }
.cl-load { margin: 30px 0 0; color: var(--text-3); font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.cl-load .ls-mark { width: 10px; height: 15px; fill: var(--text-3); }
.mk-foot { border-top: 1px solid var(--divider); color: var(--text-3); font-size: 13px; padding: 22px 20px; text-align: center; }
.mk-foot p { margin: 0 0 6px; }

/* Sensi standing on the page: a still or a transparent loop, with a shadow at his feet */
.sensi-stand { position: relative; }
.sensi-stand video, .sensi-stand img { display: block; width: 100%; height: auto; position: relative; }
.sensi-stand::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -7px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 50, 110, .32), transparent); }

/* the app's pages for visitors who aren't signed in (body.site: login, check your email, messages, connect): the
   same type and cards as the landing pages */
.site .auth { min-height: calc(100vh - 64px); }
.site .auth-card { border-radius: 22px; padding: 24px;
  box-shadow: 0 30px 70px -30px rgba(23, 50, 110, .35), 0 0 0 1px rgba(23, 37, 64, .05); }
.site .auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.site main h1 { font-weight: 800; letter-spacing: -0.04em; }

/* phones: a CTA bar once the hero is gone, out of the way of sections marked data-hides-bar */
.mbar { display: none; }
@media (max-width: 900px) {
  .tb nav { display: none; }
  .hx { padding: 72px 0 64px; }
  .hx-in { grid-template-columns: 1fr; gap: 40px; }
  .hx-bg { background-size: 170% auto; background-position: 60% 100%; opacity: .8; }
  .mbar { display: flex; gap: 10px; align-items: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px); box-shadow: 0 16px 40px -12px rgba(23, 50, 110, .4), 0 0 0 1px rgba(23, 37, 64, .06);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; height: 48px; }
  .mbar a.ml { font-size: 13px; font-weight: 600; padding: 0 6px; }
}
@media (max-width: 520px) {
  .hx h1 { font-size: 40px; }
  .tb-right .btn:not(.tb-get) { display: none; } .tb-get { opacity: 1; transform: none; pointer-events: auto; }
  .hx-cta .btn { width: 100%; } .hx-cta { gap: 14px; }
  .lrow .why, .lrow .src { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (max-width: 380px) { .tb .logo { height: 22px; width: auto; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ls-mark.spin { animation: none !important; }
}
