/* Blacks Connect — ConnectSiteNext presentation (scoped).
   Colour tokens aligned with ConnectSite `connect-onepage.css` (.connect-page). */

.next-app {
  /* — ConnectSite primitives (reference) — */
  --bc-yellow: #f5cc1a;
  --bc-bright-yellow: #ffec00;
  --bc-ink: #111214;
  --bc-muted: #5e6066;
  --bc-border: rgba(17, 18, 20, 0.12);
  --bc-surface: #ffffff;
  --bc-surface-2: #f6f7f9;
  --bc-neutral-darkest: #222220;
  --bc-neutral-lightest: #f2f1f3;
  --bc-yellow-primary: #fd0;
  --bc-link: #3cb6e9;
  --bc-link-hover: #2a2847;
  --bc-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);

  /* — Next aliases (same values as ConnectSite usage) — */
  --next-paper: var(--bc-surface);
  --next-ink: var(--bc-ink);
  --next-muted: var(--bc-muted);
  --next-accent: var(--bc-yellow-primary);
  --next-accent-soft: rgba(245, 204, 26, 0.22);
  --next-line: var(--bc-border);
  --next-footer-bg: var(--bc-neutral-darkest);
  --next-footer-fg: rgba(255, 255, 255, 0.88);
  --next-cta: var(--bc-yellow);
  --next-cta-text: var(--bc-ink);
  --next-radius: 14px;
  --next-radius-sm: 10px;
  --next-shadow: var(--bc-shadow);
  --next-wrap: min(1160px, calc(100% - 3rem));
  --next-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bc-surface);
  color: var(--bc-ink);
  font-family: var(--next-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.next-app h1,
.next-app h2,
.next-app h3,
.next-app h4 {
  font-family: var(--next-font);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

/* Base: no bright blue + no always-on underlines (cards/footer/buttons set their own) */
.next-app a {
  color: var(--bc-ink);
  font-weight: 600;
  text-decoration: none;
}

/* Prose-style inline links: ink, subtle bar; hover/focus yellow bar */
.next-app .next-body a,
.next-app .next-lead a,
.next-app .next-hero__lead a,
.next-app .next-btl-intro a,
.next-app .next-btl-step__text a,
.next-app .next-contact-suite .next-contact-card__value {
  color: var(--bc-ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(17, 18, 20, 0.3);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.next-app .next-body a:hover,
.next-app .next-body a:focus-visible,
.next-app .next-lead a:hover,
.next-app .next-lead a:focus-visible,
.next-app .next-hero__lead a:hover,
.next-app .next-hero__lead a:focus-visible,
.next-app .next-btl-intro a:hover,
.next-app .next-btl-intro a:focus-visible,
.next-app .next-btl-step__text a:hover,
.next-app .next-btl-step__text a:focus-visible,
.next-app .next-contact-suite .next-contact-card__value:hover,
.next-app .next-contact-suite .next-contact-card__value:focus-visible {
  color: var(--bc-ink);
  box-shadow: inset 0 -2px 0 var(--bc-yellow-primary);
}

/* Card / tile links: no underline bar */
.next-app a.next-hero__sign,
.next-app a.next-cardrail__card,
.next-app a.next-policy-card {
  color: var(--next-ink);
  font-weight: inherit;
  box-shadow: none;
}

.next-app a.next-hero__sign:hover,
.next-app a.next-hero__sign:focus-visible,
.next-app a.next-cardrail__card:hover,
.next-app a.next-cardrail__card:focus-visible,
.next-app a.next-policy-card:hover,
.next-app a.next-policy-card:focus-visible {
  color: var(--next-ink);
  box-shadow: none;
}

.next-muted {
  color: var(--next-muted);
}

.next-mt-md {
  margin-top: 1rem;
}

.next-skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--bc-yellow);
  color: #000;
  border-radius: 6px;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.next-skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--next-accent);
  outline-offset: 2px;
}

/* ——— Header ——— */
.next-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.28s ease,
    backdrop-filter 0.28s ease;
}

.next-header:has(.next-site-navbar.is-scrolled) {
  box-shadow: var(--next-shadow);
  border-bottom-color: var(--next-line);
}

/* Desktop, minimal bar only: no white strip — Broker reads as a floating CTA (distinct from ConnectSite’s dark banner). */
@media (min-width: 992px) {
  .next-header:has(.next-site-navbar.is-minimal-header) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .next-header:has(.next-site-navbar.is-minimal-header) .next-header__bar {
    padding-top: 0.9rem;
    padding-bottom: 0.5rem;
  }

  .next-header:has(.next-site-navbar.is-minimal-header) .next-nav__broker-desktop {
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.08),
      0 10px 28px rgba(0, 0, 0, 0.12);
  }
}

.next-header__bar {
  padding: 0.65rem 0;
}

.next-wrap {
  width: var(--next-wrap);
  margin-left: auto;
  margin-right: auto;
}

.next-site-navbar {
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

@media (min-width: 992px) {
  .next-site-navbar {
    justify-content: flex-start;
  }

  .next-site-navbar.is-minimal-header {
    justify-content: flex-end;
  }

  .next-site-navbar .next-nav__collapse {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .next-site-navbar .next-nav__collapse .next-nav__links {
    justify-content: flex-end;
  }

  /* When logo + links are collapsed away, don’t leave a hollow flex gap */
  .next-site-navbar.is-minimal-header .next-nav__collapse {
    flex: 0 0 auto;
    min-width: 0;
  }
}

/* Logo + nav links share this — hide both on desktop scroll-down */
@media (min-width: 992px) {
  .next-nav__scroll-hide.is-header-minimized {
    opacity: 0;
    visibility: hidden;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    border: 0;
    flex: 0 0 0 !important;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease,
      max-width 0.28s ease,
      max-height 0.28s ease,
      margin 0.28s ease,
      padding 0.28s ease;
  }
}

.next-brand {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: opacity 0.25s ease, max-width 0.3s ease, margin 0.3s ease;
  overflow: hidden;
  box-shadow: none;
  text-decoration: none;
}

.next-brand:hover,
.next-brand:focus-visible {
  box-shadow: none;
}

.next-brand__img {
  height: 36px;
  width: auto;
  display: block;
}

.next-nav__toggle {
  margin-left: auto;
  border: 0 !important;
  background: transparent !important;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  box-shadow: none !important;
}

.next-nav__toggle.navbar-toggler:focus {
  box-shadow: none;
}

.next-nav__toggle:focus-visible {
  outline: 2px solid var(--next-accent);
  outline-offset: 2px;
}

.next-nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--next-ink);
  border-radius: 1px;
}

@media (min-width: 992px) {
  .next-nav__toggle {
    display: none;
  }
}

.next-nav__collapse {
  flex-grow: 1;
}

.next-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .next-nav__links {
    width: auto;
  }
}

.next-nav__link {
  color: var(--next-ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  box-shadow: none;
}

.next-nav__link:hover,
.next-nav__link:focus-visible {
  border-bottom-color: var(--next-accent);
  text-decoration: none;
  color: var(--next-ink);
  box-shadow: none;
}

@media (max-width: 991px) {
  .next-site-navbar .navbar-collapse {
    width: 100%;
  }

  .next-nav__collapse {
    padding-top: 0.75rem;
  }

  .next-nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .next-btn--broker {
    justify-content: center;
  }

  /* Scroll compression is desktop-only; clear state if class lingers after resize */
  .next-nav__scroll-hide.is-header-minimized {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
    max-height: none !important;
    margin: inherit !important;
    padding: inherit !important;
    overflow: visible !important;
    pointer-events: auto !important;
    flex: none !important;
    height: auto !important;
    border: inherit;
  }

  .next-site-navbar.is-minimal-header {
    justify-content: flex-start;
  }
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.next-btn:active {
  transform: scale(0.98);
}

.next-nav__broker-desktop {
  transition: box-shadow 0.28s ease, transform 0.2s ease;
}

.next-btn--broker {
  background: var(--next-cta);
  color: var(--next-cta-text);
  text-decoration: none;
  padding-right: 0.35rem;
  border: 0;
}

.next-btn--broker:hover {
  background: var(--bc-bright-yellow);
  color: var(--next-cta-text);
  text-decoration: none;
}

.next-btn--broker:hover .next-btn__chev {
  background: #000;
  color: #fff;
}

/* Blacks-style black circle arrow (Broker login only) */
.next-btn--broker .next-btn__chev {
  margin-left: 0.35rem;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  border-radius: 50%;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.next-btn--primary .next-btn__chev {
  margin-left: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
}

.next-btn--primary {
  background: var(--next-cta);
  color: var(--next-cta-text);
  border-color: var(--next-cta);
  text-decoration: none;
}

.next-btn--primary:hover {
  background: var(--bc-bright-yellow);
  color: var(--next-cta-text);
  border-color: var(--bc-bright-yellow);
  filter: none;
}

.next-btn--ghost {
  background: transparent;
  color: var(--next-ink);
  border-color: var(--next-line);
}

.next-btn--ghost:hover {
  border-color: var(--next-ink);
  color: var(--next-ink);
}

.next-btn--light {
  background: #fff;
  color: var(--next-ink);
  border-color: rgba(255, 255, 255, 0.5);
}

.next-btn--light:hover {
  background: var(--bc-surface-2);
}

.next-main {
  min-height: 40vh;
}

/* ——— Hero ——— */
.next-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 520px at 5% 10%, rgba(245, 204, 26, 0.22), rgba(245, 204, 26, 0) 62%),
    radial-gradient(780px 480px at 90% 20%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, var(--bc-surface), var(--bc-surface-2));
}

.next-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .next-hero__grid {
    grid-template-columns: 1fr minmax(280px, 42%);
    gap: 3rem;
  }
}

.next-hero__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--next-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.next-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  margin: 0 0 1rem;
}

.next-hero__title .next-accent {
  color: var(--next-accent);
}

.next-hero__lead {
  font-size: 1.15rem;
  color: var(--next-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.next-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2rem;
}

.next-hero__signpost {
  border-top: 1px solid var(--next-line);
  padding-top: 1.5rem;
}

.next-hero__signpost-title {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.next-hero__signpost-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .next-hero__signpost-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.next-hero__sign {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--next-radius-sm);
  border: 1px solid var(--next-line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--next-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.next-hero__sign:hover {
  border-color: rgba(255, 221, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--next-ink);
}

.next-hero__sign-chev {
  color: var(--next-accent);
  font-weight: 700;
  line-height: 1.2;
}

.next-hero__sign h3 {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}

.next-hero__visual {
  position: relative;
  border-radius: calc(var(--next-radius) + 4px);
  overflow: hidden;
  box-shadow: var(--next-shadow);
  aspect-ratio: 4 / 5;
  max-height: min(520px, 70vh);
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 900px) {
  .next-hero__visual {
    margin: 0 0 0 auto;
    max-width: none;
  }
}

.next-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.next-hero__accent {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: min(28%, 140px);
  aspect-ratio: 1;
  transform: rotate(36deg);
  pointer-events: none;
}

.next-hero__accent-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--next-accent);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.next-hero__accent-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  opacity: 0;
  border-top-left-radius: 300px;
  border-bottom-left-radius: 300px;
  background: linear-gradient(127deg, var(--bc-yellow-primary), rgba(255, 221, 0, 0));
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-hero__accent.is-inview .next-hero__accent-dot,
.next-hero__accent.is-inview .next-hero__accent-line {
  opacity: 1;
}

.next-hero__accent.is-inview .next-hero__accent-line {
  width: 500% !important;
  height: 100% !important; 
}

/* ——— Sections ——— */
.next-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.next-section--alt {
  background: var(--bc-surface-2);
}

.next-section__h {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.next-lead {
  font-size: 1.1rem;
  color: var(--next-muted);
  max-width: 40rem;
}

.next-body {
  color: var(--next-muted);
  max-width: 42rem;
}

.next-stack-sm > * + * {
  margin-top: 0.85rem;
}

.next-stack-lg > * + * {
  margin-top: 1.5rem;
}

.next-space-sm {
  height: 0.75rem;
}

.next-space-md {
  height: 1.25rem;
}

.next-space-xl {
  height: 2.5rem;
}

/* ——— Services + card rail ——— */
.next-services-head {
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .next-services-cols {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: start;
  }
}

.next-cardrail {
  position: relative;
}

.next-cardrail__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.next-cardrail__icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--next-line);
  background: #fff;
  color: var(--next-ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.next-cardrail__icon-btn:hover {
  border-color: var(--next-accent);
  background: var(--next-accent-soft);
}

.next-cardrail__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.next-cardrail__track::-webkit-scrollbar {
  display: none;
}

.next-cardrail__track:focus-visible {
  outline: 2px solid var(--next-accent);
  outline-offset: 4px;
}

.next-cardrail__card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--next-radius);
  border: 1px solid var(--next-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.next-cardrail__card:hover {
  border-color: rgba(245, 204, 26, 0.55);
  box-shadow: var(--next-shadow);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.next-cardrail__card-sum {
  padding: 1.1rem 1.15rem 0.5rem;
}

.next-cardrail__card-sum h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.next-cardrail__card-body {
  padding: 0 1.15rem 1rem;
  flex: 1;
}

.next-cardrail__card-body h4 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.next-cardrail__card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--next-muted);
}

.next-cardrail__media {
  margin-top: auto;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.next-cardrail__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 244, 239, 0.2), transparent);
}

.next-app .next-cardrail__media--quote {
  background-image: url("/images/quote.jpg"), url("/images/003BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

.next-app .next-cardrail__media--referral {
  background-image: url("/images/referral.jpg"), url("/images/049BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

.next-app .next-cardrail__media--direct {
  background-image: url("/images/direct.jpg"), url("/images/047BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

.next-app .next-cardrail__media--person {
  background-image: url("/images/person.jpg"), url("/images/023BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

.next-app .next-cardrail__media--fees {
  background-image: url("/images/fees.jpg"), url("/images/039BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

.next-app .next-cardrail__media--fixed {
  background-image: url("/images/fixed.jpg"), url("/images/043BLACKS-CANDID-OFFICE-SHOTS.jpg");
}

/* ——— Stats ——— */
.next-stats {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .next-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.next-stat {
  padding: 1.25rem 1.35rem;
  border-radius: var(--next-radius-sm);
  border-left: 3px solid var(--next-accent);
  background: rgba(255, 255, 255, 0.65);
}

.next-stat h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.next-stat p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--next-muted);
}

/* ——— About ——— */
.next-about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .next-about {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
  }

  .next-about__visual {
    order: -1;
    display: flex;
    min-height: 0;
  }
}

.next-about__figure {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.next-about__img {
  width: 100%;
  height: auto;
  border-radius: var(--next-radius);
  box-shadow: var(--next-shadow);
  object-fit: cover;
  object-position: center 28%;
  aspect-ratio: 4 / 5;
  max-height: min(92vw, 520px);
  display: block;
}

@media (min-width: 900px) {
  .next-about__figure {
    flex: 1;
    min-height: min(100%, 520px);
  }

  .next-about__img {
    height: 100%;
    min-height: 400px;
    max-height: none;
    align-self: stretch;
  }
}

.next-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ——— Register (ConnectSite: light band + dark card) ——— */
.next-section-register {
  position: relative;
  overflow: hidden;
  background-color: var(--bc-neutral-lightest);
  color: var(--bc-ink);
}

.next-section.next-section-register {
  padding-top: clamp(3.75rem, 7vw, 6rem);
  padding-bottom: clamp(3.75rem, 7vw, 6rem);
}

.next-section-register .next-register-intro .next-section__h,
.next-section-register .next-register-intro h2 {
  color: var(--bc-ink);
}

.next-section-register .next-register-intro .next-lead,
.next-section-register .next-register-intro .next-body {
  color: var(--bc-ink);
}

.next-section-register .next-register-intro .next-muted {
  color: var(--bc-muted);
}

.next-register-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--bc-muted);
  margin: 0 0 0.65rem;
}

.next-register-aside-list {
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.next-register-aside-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.8rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--bc-ink);
  font-weight: 500;
}

.next-register-aside-list li:last-child {
  margin-bottom: 0;
}

.next-register-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--bc-yellow-primary);
}

.next-register-aside-callout {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--bc-border);
  border-radius: var(--next-radius-sm);
  border-left: 3px solid var(--bc-yellow-primary);
}

.next-register-aside-callout__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
  color: var(--bc-ink);
}

.next-register-aside-callout__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.next-register-aside-callout strong {
  font-weight: 700;
  color: var(--bc-ink);
}

.next-register-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .next-register-grid {
    grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.75rem);
    align-items: start;
  }

  .next-register-intro {
    position: sticky;
    /*top: 5.5rem;*/
    align-self: start;
    max-width: 34rem;
  }
}

.next-form-panel {
  background-color: var(--bc-neutral-darkest);
  color: #fff;
  border-radius: var(--next-radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  position: relative;
  --next-form-accent: var(--bc-yellow-primary);
  --next-form-border: rgba(255, 255, 255, 0.15);
}

/* Win/mac browsers often use blue/purple for native controls — force Blacks yellow */
.next-form-panel input[type="radio"],
.next-form-panel input[type="checkbox"] {
  accent-color: var(--bc-yellow-primary);
}

.next-register-form .text-danger {
  color: #ffb4a8 !important;
}

.next-field {
  margin-bottom: 1rem;
}

.next-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.next-input,
.next-register-form select.next-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 30, 36, 0.55);
  color: #fff;
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
}

.next-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.next-input:focus {
  outline: 2px solid var(--next-form-accent, var(--bc-yellow-primary));
  outline-offset: 1px;
  border-color: transparent;
}

.next-register-form__row3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .next-register-form__row3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.next-register-form__row2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .next-register-form__row2 {
    grid-template-columns: 1fr 1fr;
  }
}

.next-register-form__errors {
  margin-bottom: 1rem;
}

.next-register-form__captcha-inner {
  margin-top: 0.35rem;
}

.next-consent {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
}

.next-consent-title {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

.next-consent p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.65rem;
}

.next-consent a {
  color: #fff;
  text-decoration: underline;
  box-shadow: none;
}

.next-consent a:hover,
.next-consent a:focus-visible {
  opacity: 0.92;
  box-shadow: none;
  color: var(--bc-bright-yellow);
}

.next-consent-prompt {
  font-weight: 600;
  margin: 0.75rem 0 0.5rem !important;
}

.next-consent-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.next-consent-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.next-consent-opt input[type="radio"]:focus-visible {
  outline: 2px solid var(--bc-yellow-primary);
  outline-offset: 2px;
}

.next-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.875rem 2rem;
  border: 0;
  border-radius: 1000px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--bc-yellow);
  color: var(--bc-ink);
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.2s ease;
  min-height: 3rem;
}

.next-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.next-submit:not(:disabled):hover {
  background: var(--bc-bright-yellow);
}

.next-app .next-register-form .custom-control-label,
.next-app .next-register-form .custom-control-input:checked ~ .custom-control-label {
  color: rgba(255, 255, 255, 0.88);
}


/* Bootstrap 4-style custom checkbox (not in Bootstrap 5 CSS) */
.next-app .next-register-form .custom-control {
  position: relative;
  display: block;
  min-height: 1.35rem;
  padding-left: 1.75rem;
}

.next-app .next-register-form .custom-control-input {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
}

.next-app .next-register-form .custom-control-label {
  cursor: pointer;
  margin: 0;
}

.next-app .next-register-form .custom-control-label a {
  color: #fff;
  text-decoration: underline;
  box-shadow: none;
}

.next-app .next-register-form .custom-control-label a:hover,
.next-app .next-register-form .custom-control-label a:focus-visible {
  color: var(--bc-bright-yellow);
  opacity: 1;
  box-shadow: none;
}

/* ——— Buy to let ——— */
.next-btl-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}

.next-btl-title .next-accent {
  color: var(--next-accent);
}

.next-btl-intro {
  font-size: 1.05rem;
  color: var(--next-muted);
  max-width: 52rem;
  margin-bottom: 2rem;
}

.next-btl-steps {
  counter-reset: btl;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.next-btl-steps::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--next-line);
}

@media (min-width: 768px) {
  .next-btl-steps::before {
    left: 1.1rem;
  }
}

.next-btl-step {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .next-btl-step {
    padding-left: 3.25rem;
  }
}

.next-btl-step::before {
  content: counter(btl, decimal);
  counter-increment: btl;
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--bc-neutral-darkest);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

@media (min-width: 768px) {
  .next-btl-step::before {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8rem;
  }
}

.next-btl-step__title {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.next-btl-step__sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--next-accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.next-btl-step__text {
  margin: 0;
  color: var(--next-muted);
}

.next-btl-step__list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--next-muted);
}

/* ——— Contact: editorial header + icon cards; policies: dark suite, tall tiles ——— */
.next-section--contact {
  padding: 0;
  background:
    radial-gradient(ellipse 100% 70% at 15% 0%, rgba(245, 204, 26, 0.16), transparent 58%),
    linear-gradient(185deg, var(--bc-surface-2) 0%, var(--bc-surface) 42%, var(--bc-surface) 100%);
}

.next-contact-page {
  display: flex;
  flex-direction: column;
}

.next-contact-page > .next-wrap {
  padding-top: clamp(3.5rem, 7vw, 6.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.next-contact-suite {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.25rem);
  align-items: start;
}

.next-contact-suite__header {
  max-width: 38rem;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.next-contact-suite__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bc-muted);
  margin: 0 0 0.85rem;
}

.next-contact-suite__title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: var(--bc-ink);
}

.next-contact-suite__lead {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--next-muted);
  font-weight: 500;
}

.next-contact-cards {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 540px) and (max-width: 899px) {
  .next-contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
  }

  .next-contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.35rem 1.1rem 1.45rem;
  }

  .next-contact-card__icon {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.15rem;
  }

  .next-contact-card__value--email {
    font-size: 0.82rem;
  }

  .next-contact-card__hint {
    margin-top: auto;
    padding-top: 0.65rem;
  }
}

.next-contact-card {
  background: #fff;
  border-radius: calc(var(--next-radius) + 6px);
  border: 1px solid var(--next-line);
  padding: 1.65rem 1.6rem 1.85rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.22s ease;
  margin: 0;
}

.next-contact-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 221, 0, 0.35);
  transform: translateY(-3px);
}

.next-contact-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bc-yellow) 0%, var(--bc-bright-yellow) 100%);
  color: var(--bc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.next-contact-card__label {
  font-family: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--next-muted);
  margin: 0 0 0.45rem;
}

.next-contact-card__value {
  display: inline-block;
  font-weight: 700;
  color: var(--bc-ink);
  line-height: 1.25;
}

.next-contact-card__value--tel {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.next-contact-card__value--email {
  font-size: 1rem;
  word-break: break-word;
}

.next-contact-card__address {
  font-style: normal;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--bc-ink);
  margin: 0 0 0.15rem;
}

.next-contact-card__hint {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--next-muted);
  line-height: 1.5;
}

/* Large screens: intro row, then three channels in one row — no “short column vs tall stack” */
@media (min-width: 900px) {
  .next-contact-suite {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 4.5vw, 3.25rem);
  }

  .next-contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
  }

  .next-contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem 1.2rem 1.55rem;
  }

  .next-contact-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .next-contact-card__value--tel {
    font-size: clamp(1.15rem, 1.65vw, 1.45rem);
  }

  .next-contact-card__value--email {
    font-size: clamp(1.15rem, 1.65vw, 1.45rem);
  }

  .next-contact-card__hint {
    margin-top: auto;
    padding-top: 0.85rem;
  }
}

/* Policies: low-footprint strip before footer (not a second hero) */
.next-policy-suite {
  background: var(--bc-surface-2);
  color: var(--bc-ink);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  margin-top: 0;
  border-top: 1px solid var(--next-line);
}

.next-policy-suite .next-wrap {
  padding-bottom: 0;
}

.next-policy-suite__header {
  max-width: 40rem;
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

.next-policy-suite__title {
  font-family: inherit;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--bc-muted);
}

.next-policy-suite__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--next-muted);
}

.next-policy-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .next-policy-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }
}

.next-policy-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--next-radius-sm);
  overflow: hidden;
  border: 1px solid var(--next-line);
  background: #fff;
  color: var(--bc-ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.next-policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: rgba(17, 18, 20, 0.14);
  text-decoration: none;
  color: inherit;
}

.next-policy-card__image {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  min-height: 72px;
  max-height: 120px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .next-policy-card__image {
    min-height: 80px;
    max-height: 100px;
    aspect-ratio: 2.4 / 1;
  }
}

.next-app .next-policy-card__image--cookies {
  background-image: url("/images/cookies.jpg");
}

.next-app .next-policy-card__image--data {
  background-image: url("/images/data-protection.jpg");
}

.next-policy-card__body {
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .next-policy-card__body {
    padding: 1.1rem 1.2rem 1.2rem;
  }
}

.next-policy-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bc-muted);
}

.next-policy-card__body h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.25rem;
  line-height: 1.25;
  font-family: inherit;
  font-weight: 700;
}

.next-policy-card__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--next-muted);
}

.next-policy-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bc-ink);
  transition: color 0.2s ease;
}

.next-policy-card:hover .next-policy-card__cta {
  color: var(--bc-muted);
}

.next-app .next-cardrail__card,
.next-app .next-policy-card {
  text-decoration: none !important;
}

.next-app .next-cardrail__card:hover,
.next-app .next-policy-card:hover {
  text-decoration: none !important;
}

/* ——— Footer ——— */
.next-footer {
  background: var(--next-footer-bg);
  color: var(--next-footer-fg);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.next-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  box-shadow: none;
}

.next-footer a:hover,
.next-footer a:focus-visible {
  color: var(--bc-yellow);
  box-shadow: none;
}

.next-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .next-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.next-footer__logo {
  height: 36px;
  width: auto;
  opacity: 0.95;
}

.next-footer__social {
  margin-top: 1rem;
}

.next-footer__social-link {
  display: inline-flex;
  color: inherit !important;
  opacity: 0.85;
}

.next-footer__social-link:hover {
  opacity: 1;
  color: var(--bc-yellow) !important;
}

.next-footer__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin: 0 0 0.35rem;
}

.next-footer__text {
  margin: 0 0 0.35rem;
}

.next-footer__tel {
  font-weight: 600;
  color: inherit !important;
}

.next-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.next-footer__nav-link {
  color: inherit !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.next-footer__nav-link:hover {
  color: var(--bc-yellow) !important;
  border-bottom-color: transparent;
}

.next-footer__legal {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.65;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.next-footer__legal a {
  color: inherit !important;
  text-decoration: underline;
}

.next-footer__legal a:hover {
  color: var(--bc-yellow) !important;
}

.next-footer__tel:hover {
  color: var(--bc-yellow) !important;
}

/* ——— Scroll reveal (retain data-cn-reveal hooks) ——— */
.next-app [data-cn-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.next-app [data-cn-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.next-app [data-cn-reveal="section"] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.next-app [data-cn-reveal="section"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.next-app [data-cn-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(1) {
  transition-delay: 0.05s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(2) {
  transition-delay: 0.1s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(3) {
  transition-delay: 0.15s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(4) {
  transition-delay: 0.2s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(5) {
  transition-delay: 0.25s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(6) {
  transition-delay: 0.3s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(7) {
  transition-delay: 0.35s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(8) {
  transition-delay: 0.4s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(9) {
  transition-delay: 0.45s;
}
.next-app [data-cn-reveal="stagger"].is-revealed > *:nth-child(10) {
  transition-delay: 0.5s;
}

.next-app [data-cn-reveal="stagger"].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .next-app [data-cn-reveal],
  .next-app [data-cn-reveal="section"],
  .next-app [data-cn-reveal="stagger"],
  .next-app [data-cn-reveal="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .next-hero__accent-dot,
  .next-hero__accent-line {
    opacity: 1 !important;
    width: auto !important;
    transition: none !important;
  }

}

