@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,400..900&family=Caveat:wght@700&display=swap");

:root {
  --motion-midnight: #10183a;
  --motion-navy: #18234f;
  --motion-navy-soft: #273467;
  --motion-green: #73bd24;
  --motion-lime: #d5f23b;
  --motion-paper: #f7f8f2;
  --motion-mist: #e8eddf;
  --motion-ink: #11182c;
  --motion-muted: #657085;
  --motion-line: rgba(15, 24, 52, 0.14);
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: var(--motion-midnight);
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--motion-paper);
  color: var(--motion-ink);
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main#top {
  scroll-margin-top: 84px;
}

button,
input,
select,
textarea,
.btn,
.language-toggle,
.portal-refresh,
.phone-cta {
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: var(--motion-lime);
  color: var(--motion-midnight);
}

.motion-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--motion-green), var(--motion-lime));
  box-shadow: 0 0 18px rgba(213, 242, 59, 0.35);
}

.wrap {
  width: min(1240px, calc(100% - 64px));
}

.section {
  padding: clamp(96px, 10vw, 144px) 0;
}

.eyebrow {
  gap: 12px;
  color: var(--motion-green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-transform: none;
}

.eyebrow::before {
  width: 42px;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--motion-green), var(--motion-lime));
}

h1,
h2,
h3 {
  font-family: Archivo, system-ui, sans-serif;
  font-stretch: 92%;
}

h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(58px, 6.7vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 880;
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.97;
  letter-spacing: -0.038em;
  font-weight: 860;
}

h3 {
  letter-spacing: -0.025em;
  font-weight: 820;
}

.lead {
  max-width: 720px;
  color: var(--motion-muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.62;
}

.btn {
  min-height: 54px;
  border-radius: 11px;
  padding: 16px 22px;
  background: var(--motion-green);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 8px 0 #4e8f15;
  transition: transform 160ms var(--motion-ease), box-shadow 160ms var(--motion-ease), background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #7dcc2a;
  box-shadow: 0 10px 0 #4e8f15;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 #4e8f15;
}

.btn:focus-visible,
.language-toggle:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--motion-lime);
  outline-offset: 4px;
}

/* Compact technical navigation */
.topbar {
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 24, 52, 0.12);
  backdrop-filter: blur(18px) saturate(110%);
}

.topbar .wrap {
  min-height: 74px;
  gap: 16px;
}

.brand {
  padding: 7px 0;
}

.brand img {
  width: 156px;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.nav {
  gap: 2px;
  color: rgba(8, 14, 38, 0.72);
  font-size: 12px;
  font-weight: 690;
}

.nav a {
  position: relative;
  border-radius: 8px;
  padding: 10px 9px;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:hover,
.nav a[aria-current="location"] {
  background: rgba(115, 189, 36, 0.1);
  color: var(--motion-midnight);
}

.nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 2px;
  background: var(--motion-green);
}

.language-toggle {
  min-height: 40px;
  border-color: rgba(8, 14, 38, 0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--motion-midnight);
  box-shadow: none;
  font-weight: 720;
}

.language-toggle:hover {
  border-color: rgba(115, 189, 36, 0.55);
  background: rgba(115, 189, 36, 0.08);
}

.topbar .language-toggle:focus-visible,
.topbar .nav a:focus-visible {
  outline-color: var(--motion-green);
}

.topbar .btn.dark {
  min-height: 42px;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--motion-lime);
  color: var(--motion-midnight);
  box-shadow: none;
}

/* Hero: reference composition — dark campaign panel with an overlapping product phone. */
.hero {
  position: relative;
  min-height: min(790px, calc(100svh - 74px));
  display: flex;
  align-items: center;
  padding: clamp(88px, 8vw, 116px) 0 clamp(92px, 8vw, 120px);
  isolation: isolate;
  background: #fff;
  color: #fff;
}

.hero::before,
.hero::after,
.motion-hero-light {
  display: none;
}

.hero-grid {
  width: min(1240px, calc(100% - 64px));
}

.hero-stage {
  position: relative;
  min-height: 570px;
  padding: 68px 420px 64px 76px;
}

.hero-stage-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 76% 10%, rgba(213, 242, 59, 0.22), transparent 24%),
    radial-gradient(circle at 99% 92%, rgba(115, 189, 36, 0.68), transparent 36%),
    linear-gradient(118deg, #111a38 0%, #18234f 55%, #263669 79%, #4f8d2a 122%);
  box-shadow: 0 34px 90px rgba(15, 24, 52, 0.16);
}

.hero-stage-art::before {
  content: "";
  position: absolute;
  top: -58%;
  right: -4%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 242, 59, 0.24), rgba(115, 189, 36, 0.08) 34%, transparent 68%);
  filter: blur(8px);
}

.hero-stage-art::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -42%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 242, 59, 0.35), rgba(115, 189, 36, 0.14) 35%, transparent 68%);
  filter: blur(18px);
}

.hero-stage-art > i {
  position: absolute;
  z-index: 1;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--motion-lime);
  box-shadow: 0 0 0 7px rgba(213, 242, 59, 0.08), 0 0 24px rgba(213, 242, 59, 0.5);
}

.hero-stage-art > i:nth-child(1) { top: 14%; right: 34%; }
.hero-stage-art > i:nth-child(2) { right: 26%; bottom: 16%; width: 4px; opacity: 0.72; }
.hero-stage-art > i:nth-child(3) { right: 45%; bottom: 9%; width: 3px; opacity: 0.54; }

.hero-copy {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 720px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero-copy h1 {
  max-width: 700px;
  margin-top: 24px;
  font-size: clamp(52px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 820;
}

.hero-copy h1 > span {
  display: block;
}

.hero-script {
  position: relative;
  display: inline-block;
  color: var(--motion-lime);
  font-family: Caveat, "Segoe Print", cursive;
  font-size: 1.08em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transform: rotate(-1.4deg);
}

.hero-script::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -2px;
  left: 4%;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.48;
  transform: rotate(-1deg) scaleX(0.92);
}

.hero-copy .sub {
  max-width: 630px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.hero-ctas {
  margin-top: 28px;
}

.hero-ctas .btn {
  border-radius: 999px;
  padding-right: 24px;
  padding-left: 24px;
  background: var(--motion-lime);
  color: var(--motion-midnight);
  box-shadow: 0 10px 28px rgba(115, 189, 36, 0.28);
}

.hero-ctas .btn:hover {
  background: #e0ff43;
  box-shadow: 0 14px 32px rgba(115, 189, 36, 0.32);
}

.hero-textlink {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.hero-proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 35px;
}

.hero-proof-rail span {
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-proof-rail span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--motion-lime);
  transform: translateY(-50%);
}

.hero-showcase {
  position: absolute;
  z-index: 4;
  top: -48px;
  right: 62px;
  width: 324px;
  perspective: 1500px;
  filter: drop-shadow(0 42px 45px rgba(5, 9, 28, 0.3));
}

.hero-phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  border: 2px solid #16171a;
  border-radius: 52px;
  padding: 9px;
  background: linear-gradient(145deg, #24262b, #030405 32%, #16181c 76%, #020304);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.17),
    inset -7px 0 12px rgba(255, 255, 255, 0.035),
    0 22px 60px rgba(0, 0, 0, 0.32);
  transform-style: preserve-3d;
}

.hero-phone-frame::before {
  content: "";
  position: absolute;
  z-index: 8;
  top: 15px;
  left: 50%;
  width: 108px;
  height: 27px;
  border-radius: 999px;
  background: #050607;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
}

.hero-phone-frame::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 23px;
  left: calc(50% + 34px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10151e;
  box-shadow: inset 0 0 3px #294272;
}

.hero-phone-button {
  position: absolute;
  left: -6px;
  width: 5px;
  border-radius: 4px 0 0 4px;
  background: #17191d;
}

.hero-phone-button-one { top: 130px; height: 32px; }
.hero-phone-button-two { top: 174px; height: 64px; }

.hero-app-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 42px;
  background: #f4f6f8;
  color: #11182c;
  font-family: Archivo, system-ui, sans-serif;
}

.hero-app-header {
  padding: 38px 18px 16px;
  background: #fff;
}

.hero-app-header img {
  width: 86px;
  height: auto;
  margin-bottom: 18px;
}

.hero-app-header p {
  color: #152359;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.hero-app-header > span {
  display: block;
  margin-top: 8px;
  color: var(--motion-green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-app-commission {
  position: relative;
  margin: 14px 14px 10px;
  border-radius: 19px;
  padding: 18px;
  background: linear-gradient(145deg, #73bd24, #4f981b);
  color: #fff;
  box-shadow: 0 16px 32px rgba(79, 152, 27, 0.24);
}

.hero-app-commission small {
  display: block;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-app-commission strong {
  display: block;
  margin-top: 7px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-app-commission span {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 8px;
  font-weight: 800;
}

.hero-app-meta {
  display: flex;
  justify-content: space-between;
  padding: 3px 18px 9px;
  color: #7b8495;
  font-size: 8px;
}

.hero-app-meta b {
  color: #152359;
  font-weight: 850;
}

.hero-app-leads {
  display: grid;
  gap: 8px;
  padding: 0 14px 76px;
}

.hero-app-leads article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  border: 1px solid #e5e8ed;
  border-radius: 13px;
  padding: 12px 11px 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 44, 0.06);
}

.hero-app-leads article b,
.hero-app-leads article small {
  display: block;
}

.hero-app-leads article b {
  color: #152359;
  font-size: 10px;
  font-weight: 850;
}

.hero-app-leads article small {
  margin-top: 4px;
  color: #7b8495;
  font-size: 7px;
}

.hero-app-leads article > span {
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 999px;
  padding: 6px 8px;
  background: #fff0c8;
  color: #936400;
  font-size: 8px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.hero-app-leads article > span.is-signed {
  background: #e7f6da;
  color: #407f13;
}

/* Keep the first hero phone's pipeline labels readable at showcase scale. */
.hero-stage > .hero-showcase .hero-app-leads article > span {
  min-height: 25px;
  padding: 6px 9px;
  font-size: 9.5px;
  letter-spacing: -0.01em;
}

.hero-app-leads article i {
  position: absolute;
  right: 11px;
  bottom: 9px;
  left: 11px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.hero-app-leads article i u {
  height: 3px;
  border-radius: 999px;
  background: var(--motion-green);
  text-decoration: none;
}

.hero-app-leads article:first-child i u:nth-last-child(-n + 3),
.hero-app-leads article:last-child i u:last-child {
  background: #e1e5eb;
}

.hero-app-cta {
  position: absolute;
  right: 16px;
  bottom: 17px;
  left: 16px;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #73bd24, #4f981b);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 26px rgba(79, 152, 27, 0.24);
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .sub,
.hero-copy .hero-ctas,
.hero-copy .hero-proof-rail {
  animation: none;
}

/* Trust rail: less card UI, more identity strip */
.strip {
  border-bottom: 1px solid var(--motion-line);
  background: #fff;
}

.strip .wrap {
  padding: 26px 0 32px;
}

.strip strong {
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--motion-navy);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.logo-row {
  --logo-gap: 0px;
  --logo-gap-offset: 0px;
  animation-duration: 68s;
}

.logo-tile,
.logo-tile.proof {
  min-height: 64px;
  gap: 12px;
  border: 0;
  border-right: 1px solid rgba(15, 24, 52, 0.13);
  border-radius: 0;
  padding: 10px 28px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 740;
}

.logo-tile img,
.logo-tile svg {
  height: 38px;
}

.logo-tile.proof .proof-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--motion-green);
}

.logo-row:hover,
.logo-row:focus-within {
  animation-play-state: paused;
}

/* Process: keep the long story light, with navy reserved for the product itself. */
.portal-section {
  overflow: clip;
  background:
    radial-gradient(circle at 88% 9%, rgba(213, 242, 59, 0.18), transparent 22%),
    radial-gradient(circle at 7% 38%, rgba(115, 189, 36, 0.08), transparent 26%),
    linear-gradient(180deg, #fff 0%, var(--motion-paper) 44%, #edf2e6 100%);
  color: var(--motion-ink);
}

.portal-intro {
  max-width: 760px;
  text-align: left;
}

.portal-intro .eyebrow {
  justify-content: flex-start;
}

.portal-intro h2 {
  max-width: 730px;
  font-size: clamp(32px, 1.35rem + 2.1vw, 42px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.portal-title-line {
  display: block;
}

.portal-editorial-copy {
  margin-top: 34px;
}

.portal-editorial-lede {
  display: grid;
  gap: 7px;
}

.portal-editorial-lede p,
.portal-editorial-body,
.portal-editorial-commission {
  margin: 0;
  font-size: 18px;
}

.portal-editorial-lede p {
  color: #4c5576;
  line-height: 1.6;
}

.portal-editorial-lede .portal-editorial-key {
  color: var(--motion-navy);
  font-weight: 800;
}

.portal-editorial-rule {
  width: 100%;
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--motion-line);
}

.portal-editorial-body {
  max-width: 640px;
  color: #3d4668;
  line-height: 1.75;
}

.portal-editorial-commission {
  max-width: 640px;
  margin-top: 26px;
  color: var(--motion-navy);
  font-weight: 800;
  line-height: 1.65;
}

.portal-percent {
  color: inherit;
  font-size: inherit;
  font-weight: 950;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: var(--motion-lime);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

@media (max-width: 640px) {
  .portal-intro h2 {
    font-size: clamp(30px, 8.2vw, 34px);
    line-height: 1.16;
  }

  .portal-title-line {
    display: inline;
  }

  .portal-editorial-copy {
    margin-top: 28px;
  }

  .portal-editorial-rule {
    margin: 28px 0;
  }

  .portal-editorial-lede p,
  .portal-editorial-body,
  .portal-editorial-commission {
    font-size: 17px;
  }

  .portal-editorial-body {
    line-height: 1.7;
  }

  .portal-editorial-commission {
    margin-top: 22px;
  }
}

.portal-section::before {
  background: none;
}

.portal-section h2,
.portal-section .portal-bridge h3 {
  color: var(--motion-navy);
}

.portal-section .split {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: clamp(70px, 9vw, 130px);
}

.portal-section .split > div:first-child {
  position: sticky;
  top: 126px;
}

.portal-section .lead {
  color: var(--motion-muted);
}

.portal-section .cards {
  gap: 0;
}

.portal-section .card.highlight {
  position: relative;
  min-height: 200px;
  border: 0;
  border-top: 1px solid var(--motion-line);
  border-radius: 0;
  padding: 40px 0 38px 82px;
  background: transparent;
  box-shadow: none;
  color: var(--motion-ink);
}

.portal-section .card.highlight:last-child {
  border-bottom: 1px solid var(--motion-line);
}

.portal-section .card.highlight::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--motion-green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(115, 189, 36, 0.08);
}

.portal-section .card.highlight::after {
  content: "";
  position: absolute;
  top: 53px;
  left: 28px;
  width: 34px;
  height: 1px;
  background: rgba(115, 189, 36, 0.5);
}

.portal-section .card.highlight h3 {
  color: var(--motion-navy);
  font-size: clamp(24px, 2.4vw, 34px);
}

.portal-section .card.highlight p {
  max-width: 570px;
  margin-top: 14px;
  color: var(--motion-muted);
  font-size: 16px;
  line-height: 1.65;
}

.role-grid {
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--motion-line);
  border-bottom: 1px solid var(--motion-line);
}

.role-card {
  border: 0;
  border-right: 1px solid var(--motion-line);
  border-radius: 0;
  padding: 32px 34px 36px;
  background: transparent;
  box-shadow: none;
}

.role-card:last-child {
  border-right: 0;
}

.role-card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 38px;
  border: 1px solid rgba(115, 189, 36, 0.48);
  border-radius: 50%;
  background: transparent;
  color: var(--motion-green);
  font-size: 14px;
}

.role-card h3 {
  color: var(--motion-navy);
  font-size: 24px;
}

.role-card p {
  color: var(--motion-muted);
  line-height: 1.6;
}

.portal-bridge {
  max-width: 860px;
  margin: 126px auto 0;
  text-align: center;
}

.portal-bridge .eyebrow {
  justify-content: center;
}

.portal-bridge h3 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.038em;
}

.portal-bridge .lead {
  margin-right: auto;
  margin-left: auto;
}

.portal-grid {
  margin-top: 54px;
  perspective: 1500px;
}

.portal-grid .hero-showcase {
  position: relative;
  top: auto;
  right: auto;
  width: min(324px, calc((100svh - 150px) * 390 / 844));
  max-width: min(324px, calc(100vw - 2rem));
  margin: 0 auto;
}

.portal-grid .hero-app-leads article.is-new {
  animation: leadCardArrive 620ms var(--motion-ease) both;
  border-color: rgba(115, 189, 36, 0.46);
  box-shadow: 0 16px 30px rgba(17, 24, 44, 0.10), 0 0 24px rgba(213, 242, 59, 0.18);
}

.portal-grid .hero-app-commission.is-demo-active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 42px rgba(79, 152, 27, 0.32), 0 0 34px rgba(213, 242, 59, 0.2);
}

.portal-grid .hero-app-cta {
  cursor: default;
  user-select: none;
}

/* Scroll story: the phone stays in view while each card advances one real portal state. */
.portal-grid {
  align-items: stretch;
}

@media (min-width: 981px) {
  .portal-side-cards {
    padding-bottom: 120px;
  }
}

.phone-column {
  position: sticky;
  top: 92px;
  align-self: start;
}

.portal-grid .hero-showcase {
  transition: rotate 520ms var(--motion-ease), translate 520ms var(--motion-ease);
  will-change: transform;
}

.portal-grid [data-portal-step] {
  transition: rotate 520ms var(--motion-ease), transform 520ms var(--motion-ease);
}

.portal-grid [data-portal-step="1"] .hero-app-screen > :not(.hero-app-header):not(.portal-story-form):not(.hero-app-cta) {
  opacity: 0.22;
  transform: scale(0.985);
}

.portal-grid [data-portal-step="2"] {
  rotate: -2deg;
}

.portal-grid [data-portal-step="3"] {
  rotate: 1.2deg;
}

.portal-grid [data-portal-step="4"] {
  rotate: 0deg;
}

.portal-grid .hero-app-screen > * {
  transition: opacity 420ms var(--motion-ease), transform 420ms var(--motion-ease);
}

.portal-story-form {
  position: absolute;
  top: 100px;
  right: 14px;
  left: 14px;
  z-index: 18;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(115, 189, 36, 0.28);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 52px rgba(15, 24, 52, 0.23), 0 0 30px rgba(213, 242, 59, 0.14);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 360ms var(--motion-ease), transform 440ms var(--motion-ease), visibility 0s linear 0s;
}

.portal-story-form[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-16px) scale(0.97);
  transition: opacity 260ms ease, transform 360ms var(--motion-ease), visibility 0s linear 360ms;
}

.portal-story-form > small {
  color: var(--motion-green);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portal-story-form > strong {
  margin-bottom: 2px;
  color: var(--motion-navy);
  font-size: 17px;
  letter-spacing: -0.025em;
}

.portal-story-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 8px 9px;
  background: #f8fafb;
}

.portal-story-form > div span {
  color: #6c7890;
  font-size: 7px;
  font-weight: 760;
}

.portal-story-form > div b {
  max-width: 58%;
  color: var(--motion-navy);
  font-size: 8px;
  font-weight: 850;
  text-align: right;
}

.portal-story-form > em {
  margin-top: 2px;
  color: #7b879a;
  font-size: 7px;
  line-height: 1.4;
  text-align: center;
}

.portal-grid .portal-story-lead {
  max-height: 0;
  overflow: hidden;
  border-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  transition: max-height 460ms var(--motion-ease), padding 460ms var(--motion-ease), opacity 300ms ease, transform 460ms var(--motion-ease);
}

.portal-grid .portal-story-lead.is-story-visible {
  max-height: 86px;
  border-width: 1px;
  padding-top: 11px;
  padding-bottom: 17px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portal-grid .portal-story-lead.is-story-visible > span {
  background: #edf6dd;
  color: #4f861d;
}

.portal-grid .portal-story-lead.is-story-signed > span {
  background: #dfe8ff;
  color: var(--motion-navy);
}

.portal-grid .portal-story-lead.is-story-paid > span {
  background: var(--motion-navy);
  color: #fff;
}

.portal-grid .portal-story-lead i u,
.portal-grid .portal-story-lead i u:nth-last-child(-n + 3) {
  background: #e1e5eb;
}

.portal-grid .portal-story-lead i u.on,
.portal-grid .portal-story-lead i u.on:nth-last-child(-n + 3) {
  background: var(--motion-green);
}

.portal-side-cards {
  align-self: start;
}

.portal-section .portal-side-cards .portal-story-card {
  display: flex;
  min-height: min(72svh, 720px);
  flex-direction: column;
  justify-content: center;
  opacity: 0.34;
  transform: translateX(16px) scale(0.985);
  transition: opacity 360ms ease, transform 520ms var(--motion-ease), border-color 360ms ease;
}

.portal-section .portal-side-cards .portal-story-card.is-active {
  border-color: rgba(115, 189, 36, 0.52);
  opacity: 1;
  transform: translateX(0) scale(1);
}

.portal-section .portal-side-cards .portal-story-card::before {
  top: 50%;
  transform: translateY(-50%);
  transition: background 320ms ease, box-shadow 320ms ease;
}

.portal-section .portal-side-cards .portal-story-card::after {
  top: 50%;
}

.portal-section .portal-side-cards .portal-story-card.is-active::before {
  background: var(--motion-green);
  box-shadow: 0 0 0 10px rgba(115, 189, 36, 0.1), 0 0 28px rgba(115, 189, 36, 0.28);
}

.portal-story-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--motion-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.phone-hint {
  border: 1px solid rgba(115, 189, 36, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--motion-navy);
}

.phone-hint strong {
  color: var(--motion-green);
}

.phone {
  width: min(382px, calc(100vw - 2rem), max(320px, calc((100dvh - 190px) * 390 / 844)));
  border-radius: 42px;
  box-shadow: 0 34px 80px rgba(15, 24, 52, 0.24), 0 0 54px rgba(115, 189, 36, 0.1);
  transform-style: preserve-3d;
}

.phone.hero-phone-frame {
  border: 2px solid #16171a;
  border-radius: 52px;
  padding: 9px;
  background: linear-gradient(145deg, #24262b, #030405 32%, #16181c 76%, #020304);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.17),
    inset -7px 0 12px rgba(255, 255, 255, 0.035),
    0 34px 80px rgba(15, 24, 52, 0.24),
    0 0 54px rgba(115, 189, 36, 0.1);
}

.phone-screen {
  border-radius: 33px;
}

.phone-demo .hero-app-screen {
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 42px;
  padding-bottom: 82px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.phone-demo .hero-app-screen::-webkit-scrollbar {
  display: none;
}

.phone-demo .hero-app-commission.is-demo-active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 42px rgba(79, 152, 27, 0.32), 0 0 34px rgba(213, 242, 59, 0.2);
}

.phone-demo .hero-app-commission em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 760;
}

.phone-demo .hero-app-commission span[data-signed-pill] {
  gap: 5px;
}

.phone-demo .hero-app-commission span[data-signed-pill] i {
  color: var(--motion-lime);
  font-style: normal;
}

.phone-demo .hero-app-meta {
  align-items: center;
  padding: 3px 18px 9px;
}

.phone-demo .hero-app-meta .portal-refresh {
  padding: 5px 0;
  color: #64728d;
  font-size: 8px;
  font-weight: 850;
}

.phone-demo .hero-app-meta .portal-refresh:hover {
  background: transparent;
  color: var(--motion-green);
  transform: none;
}

.phone-demo .hero-app-leads {
  padding-bottom: 84px;
}

.phone-demo .hero-app-leads article.is-new {
  animation: leadCardArrive 620ms var(--motion-ease) both;
  border-color: rgba(115, 189, 36, 0.46);
  box-shadow: 0 16px 30px rgba(17, 24, 44, 0.10), 0 0 24px rgba(213, 242, 59, 0.18);
}

.phone-demo .hero-app-leads article .progress u {
  background: #e1e5eb;
}

.phone-demo .hero-app-leads article .progress u.on {
  background: var(--motion-green);
}

.phone-demo .hero-app-leads article > span.is-paid {
  background: #152359;
  color: #fff;
}

.phone-demo .hero-app-cta.phone-cta {
  display: block;
  width: auto;
  min-height: 0;
  border-radius: 12px;
  padding: 14px;
  font-size: 10px;
  box-shadow: 0 14px 26px rgba(79, 152, 27, 0.24), 0 -10px 26px rgba(244, 246, 248, 0.78);
}

.commission-pulse,
.lead-card,
.phone-cta {
  border-radius: 14px;
}

/* Third-party authority */
#leroy.leroy-section {
  background: var(--motion-paper);
  padding: clamp(64px, 8vh, 84px) 0;
}

#leroy .lm-location-slider {
  margin-top: 30px;
  padding: 14px 0;
}

#leroy .leroy-panel {
  grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 4vw, 64px);
  align-items: stretch;
  margin-top: 42px;
}

#leroy .leroy-badge {
  min-height: 380px;
  border-radius: 14px;
  padding: 34px;
  background: linear-gradient(155deg, var(--motion-navy-soft), var(--motion-midnight));
  box-shadow: 0 32px 70px rgba(15, 24, 52, 0.2);
}

#leroy .leroy-badge::after {
  right: -68px;
  bottom: -84px;
  width: 240px;
  height: 240px;
}

#leroy .leroy-badge img {
  width: 210px;
  border-radius: 12px;
  padding: 14px;
}

#leroy .lm-number {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
}

#leroy .lm-number strong {
  font-size: clamp(92px, 7.4vw, 108px);
  letter-spacing: -0.055em;
}

#leroy .lm-number span {
  padding-bottom: 0;
  font-size: 15px;
  line-height: 1.12;
}

#leroy .leroy-badge p {
  max-width: 360px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

#leroy .leroy-copy {
  align-self: center;
  gap: 24px;
}

#leroy .quote-card {
  border: 0;
  border-bottom: 1px solid var(--motion-line);
  border-radius: 0;
  padding: 0 0 24px;
  background: transparent;
  box-shadow: none;
}

#leroy .quote-card h3 {
  max-width: 720px;
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.15;
  letter-spacing: 0.018em;
  text-transform: uppercase;
}

.quote-card p {
  max-width: 750px;
  font-size: 17px;
  line-height: 1.7;
}

#leroy .quality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  list-style: none;
}

#leroy .quality,
#leroy .quality + .quality {
  position: relative;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--motion-line);
  border-radius: 0;
  padding: 18px 8px 0 26px;
  background: transparent;
  font-size: 15px;
  line-height: 1.4;
}

#leroy .quality::before {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--motion-green);
  content: "✓";
  font-weight: 950;
}

@media (min-width: 981px) {
  #leroy > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "lead"
      "panel"
      "slider";
    align-items: start;
  }

  #leroy > .wrap > .eyebrow {
    grid-area: eyebrow;
    margin-bottom: 16px;
  }

  #leroy > .wrap > h2 {
    grid-area: title;
    max-width: 1080px;
    font-size: clamp(42px, 3.6vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  #leroy > .wrap > .lead {
    grid-area: lead;
    max-width: 840px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.55;
  }

  #leroy .leroy-panel {
    grid-area: panel;
  }

  #leroy .leroy-badge {
    height: auto;
  }

  #leroy .lm-location-slider {
    grid-area: slider;
  }
}

.quality span {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
}

/* Reviews stay airy; the compact score card carries the navy accent. */
.reviews-section {
  background:
    radial-gradient(circle at 88% 6%, rgba(213, 242, 59, 0.18), transparent 24%),
    radial-gradient(circle at 8% 74%, rgba(115, 189, 36, 0.08), transparent 24%),
    linear-gradient(180deg, #fff, var(--motion-paper));
  border-bottom: 1px solid var(--motion-line);
}

.reviews-section h2 {
  max-width: 930px;
  color: var(--motion-navy);
}

.reviews-section .lead {
  color: var(--motion-muted);
}

.reviews-head {
  gap: 70px;
}

.google-score {
  min-width: 242px;
  border-radius: 13px;
  padding: 22px;
  background: linear-gradient(145deg, var(--motion-navy-soft), var(--motion-midnight));
  color: #fff;
  box-shadow: none;
}

.google-score .gline,
.google-score span {
  color: rgba(255, 255, 255, 0.72);
}

.google-score .stars {
  color: var(--motion-lime);
}

.reviews-columns {
  height: 670px;
  gap: 20px;
  margin-top: 58px;
}

.review-column-track {
  gap: 20px;
  padding-bottom: 20px;
  animation-duration: calc(var(--review-duration, 10s) * 3.2);
}

.review-column:nth-child(2) .review-column-track {
  animation-direction: reverse;
}

.review-card {
  border: 1px solid var(--motion-line);
  border-radius: 13px;
  padding: 30px;
  background: #fff;
  box-shadow: none;
}

.review-card p {
  color: var(--motion-ink);
  font-size: 15px;
  line-height: 1.72;
}

/* Hover/focus slowdown is handled through the Web Animations API in motion.js.
   Changing playbackRate preserves the loop position instead of restarting it. */

/* Real project proof */
.proof-gallery {
  overflow: hidden;
  background: linear-gradient(180deg, var(--motion-paper), var(--motion-mist));
}

.proof-gallery > .wrap > h2 {
  max-width: 870px;
}

.proof-gallery > .wrap > .lead {
  max-width: 760px;
}

.gallery-grid {
  display: block;
  margin-top: 54px;
}

.ba-main {
  width: min(100%, 980px);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--motion-midnight);
  box-shadow: 0 32px 64px rgba(15, 24, 52, 0.18);
  clip-path: inset(0 0 0 0);
}

.ba-stage {
  --ba-position: 50%;
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: #dce1db;
  touch-action: pan-y;
}

.ba-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: none;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba-position)) 0 0);
  will-change: clip-path;
}

.ba-tag {
  position: absolute;
  top: 20px;
  z-index: 3;
  border-radius: 7px;
  padding: 8px 12px;
  background: rgba(8, 14, 38, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.015em;
  backdrop-filter: blur(8px);
}

.ba-tag-before {
  left: 20px;
}

.ba-tag-after {
  right: 20px;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-position);
  z-index: 4;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 14, 38, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-divider::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--motion-green);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(8, 14, 38, 0.26);
  transform: translate(-50%, -50%);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-stage:focus-within {
  outline: 4px solid var(--motion-lime);
  outline-offset: -4px;
}

.ba-main figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: #fff;
}

.ba-main figcaption strong {
  font-size: 17px;
  font-weight: 800;
}

.ba-main figcaption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 620;
}

.project-gallery-head {
  width: min(100%, 980px);
  margin: 42px auto 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.project-gallery-head strong {
  color: var(--motion-midnight);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 840;
  letter-spacing: -0.025em;
}

.project-gallery-head span {
  color: var(--motion-muted);
  font-size: 14px;
}

.project-rail {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  outline: none;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.project-rail:focus-visible {
  outline: 3px solid var(--motion-green);
  outline-offset: 6px;
}

.project-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 6px 0 22px;
  animation: proofMarquee 55s linear infinite;
  will-change: transform;
}

.project-set {
  display: flex;
  gap: 16px;
}

.project-card {
  position: relative;
  flex: 0 0 300px;
  width: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 11px;
  background: #dce1db;
}

.project-card img {
  width: 100%;
  height: 375px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms var(--motion-ease);
}

.project-card:hover img {
  transform: scale(1.035);
}

@keyframes proofMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 8px), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-rail {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: thin;
  }

  .project-track {
    animation: none;
    transform: none;
  }

  .project-set[aria-hidden="true"] {
    display: none;
  }

  .project-card img {
    transition: none;
  }
}

/* Conversion room: repeat the hero's light frame around one focused navy panel. */
#appel {
  position: relative;
  background: var(--motion-paper);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(460px, 0.98fr) minmax(150px, 0.25fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: center;
  border: 0;
  border-radius: 28px;
  padding: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 52px);
  background:
    radial-gradient(circle at 92% 8%, rgba(213, 242, 59, 0.2), transparent 25%),
    radial-gradient(circle at 8% 92%, rgba(115, 189, 36, 0.14), transparent 28%),
    linear-gradient(135deg, #17234d 0%, var(--motion-navy) 62%, #263669 100%);
  box-shadow: none;
}

.cta-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "title"
    "lead";
  row-gap: 0;
  align-items: start;
}

.cta-copy > .eyebrow { grid-area: eyebrow; }
.cta-copy > h2 { grid-area: title; margin-top: 18px; }
.cta-copy > .cta-lead-stack { grid-area: lead; }
.cta-form-wrap {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.cta-house-illustration {
  position: relative;
  z-index: 4;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0 -120px -64px -58px;
  pointer-events: none;
}

.cta-house-illustration img {
  width: clamp(300px, 27vw, 350px);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(2, 8, 24, 0.4)) drop-shadow(0 22px 34px rgba(2, 8, 24, 0.34));
}

.language-toggle.private-language-toggle {
  max-width: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 3px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  box-shadow: none;
  opacity: 0.72;
  transform: none;
}

.language-toggle.private-language-toggle:hover {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  transform: none;
}

.cta-copy h2 {
  color: #fff;
}

.cta-copy .lead {
  color: rgba(255, 255, 255, 0.65);
}

.qualification-form {
  margin-top: 0;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--motion-paper);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.qualification-step {
  gap: 12px;
  padding: 0;
  border: 0;
}

#appel .qualification-form label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

input,
select,
textarea {
  border-radius: 8px;
  font-weight: 560;
}

.form-optional {
  border: 0;
  border-top: 1px solid rgba(39, 48, 100, 0.1);
  border-radius: 0;
  padding: 12px 0 0;
  background: transparent;
}

.form-optional summary {
  color: var(--motion-navy);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.form-optional:not([open]) > :not(summary) {
  display: none;
}

.form-optional[open] summary {
  margin-bottom: 10px;
}

.form-optional textarea {
  min-height: 68px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.qualification-form .btn.dark {
  width: 100%;
  background: var(--motion-green);
  box-shadow: 0 4px 0 #4e8f15;
}

.qualification-form .btn.dark:hover {
  background: #7dcc2a;
  box-shadow: 0 5px 0 #4e8f15;
}

.qualification-form .form-actions .btn.ghost {
  min-height: 42px;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--motion-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  box-shadow: none;
}

.qualification-form .form-actions .btn.ghost:hover {
  background: rgba(39, 48, 100, 0.05);
  color: var(--motion-navy);
  box-shadow: none;
  transform: none;
}

.qualification-form .consent-note {
  margin: 2px auto 0;
  max-width: 58ch;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

html[lang="fr"] .qualification-form button[type="submit"] {
  padding-right: 10px;
  padding-left: 10px;
  font-size: clamp(12px, 3.5vw, 14px);
  white-space: nowrap;
}

footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: var(--motion-navy);
  color: rgba(255, 255, 255, 0.5);
}

footer strong {
  color: #fff;
}

.footer-language-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Mobile CTA only appears after the hero */
.sticky-cta {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 34px));
  transition: opacity 260ms ease, transform 420ms var(--motion-ease);
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sticky-cta.is-visible.is-form-visible,
.sticky-cta.is-visible.is-portal-story-visible {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 34px));
}

@media (max-width: 1080px) {
  .wrap,
  .hero-grid {
    width: min(100% - 40px, 1240px);
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.6fr);
    column-gap: 42px;
  }

  .hero-trust.commission-line {
    padding: 92px 26px 28px;
    font-size: 20px;
  }

  .cta-copy {
    grid-template-columns: minmax(0, 0.72fr) minmax(430px, 1.28fr);
    column-gap: 48px;
  }

}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "mobile-proof"
      "actions"
      "proof";
  }

  .hero-trust.commission-line {
    min-height: 0;
    margin-top: 32px;
    padding: 76px 28px 30px;
  }

  .portal-section .split,
  .leroy-panel,
  .gallery-grid,
  .cta-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-section .split > div:first-child {
    position: static;
  }

  .portal-section .cards {
    margin-top: 54px;
  }

  .cta-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "lead";
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .cta-house-illustration {
    justify-content: center;
    margin: -10px auto -18px;
  }

  .cta-house-illustration img {
    width: min(54vw, 250px);
  }

  .qualification-form {
    margin-top: 0;
  }

  #leroy.leroy-section {
    padding: 52px 0;
  }

  #leroy > .wrap > h2 {
    max-width: 720px;
    font-size: clamp(34px, 9.2vw, 42px);
    line-height: 1.03;
    letter-spacing: -0.034em;
  }

  #leroy > .wrap > .lead {
    max-width: 650px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.52;
  }

  #leroy .leroy-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }

  #leroy .leroy-badge {
    display: grid;
    grid-template-columns: clamp(108px, 31vw, 124px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 20px;
  }

  #leroy .leroy-badge::after {
    right: -54px;
    bottom: -76px;
    width: 190px;
    height: 190px;
  }

  #leroy .leroy-badge img {
    width: 100%;
    padding: 10px;
  }

  #leroy .lm-number {
    gap: 2px;
    margin-top: 0;
  }

  #leroy .lm-number strong {
    font-size: clamp(58px, 17vw, 68px);
    line-height: 0.78;
  }

  #leroy .lm-number span {
    font-size: 13px;
  }

  #leroy .leroy-badge p {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
  }

  #leroy .leroy-copy {
    gap: 18px;
  }

  #leroy .quote-card {
    padding: 0 0 18px;
  }

  #leroy .quote-card h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  #leroy .quality-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #leroy .quality,
  #leroy .quality + .quality {
    padding: 14px 4px 14px 22px;
    font-size: 13.5px;
    line-height: 1.38;
  }

  #leroy .quality::before {
    top: 14px;
  }

  #leroy .lm-location-slider {
    margin-top: 20px;
    padding: 12px 0;
  }

  #leroy .lm-city {
    font-size: 12px;
  }

  .sticky-cta {
    display: flex;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  #leroy .leroy-panel {
    gap: 24px;
  }

  #leroy .leroy-badge {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px 24px;
    min-height: 226px;
    padding: 28px;
  }

  #leroy .leroy-badge img {
    width: 168px;
    padding: 12px;
  }

  #leroy .lm-number strong {
    font-size: 84px;
  }

  #leroy .lm-number span {
    font-size: 15px;
  }

  #leroy .leroy-badge p {
    margin-top: 0;
    font-size: 14px;
  }

  #leroy .quote-card h3 {
    font-size: 23px;
  }

  #leroy .quality-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  #leroy .quality,
  #leroy .quality + .quality {
    min-height: 76px;
    padding: 18px 6px 0 24px;
    font-size: 14px;
  }

  #leroy .quality::before {
    top: 18px;
  }
}

@media (max-width: 720px) {
  .wrap,
  .hero-grid {
    width: min(100% - 28px, 1240px);
    min-width: 0;
  }

  .section {
    padding: 82px 0;
  }

  .topbar .wrap {
    min-height: 66px;
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: 132px;
    max-width: 100%;
    padding: 0;
  }

  .language-toggle {
    flex: 0 0 auto;
    max-width: 132px;
    min-height: 38px;
    padding: 8px 9px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .hero {
    padding: 54px 0 72px;
  }

  .hero .eyebrow {
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero .eyebrow::before {
    width: 28px;
  }

  .hero::before {
    top: 3%;
    right: -62%;
    width: 132vw;
  }

  .motion-hero-light {
    top: 2%;
    right: -26%;
    width: 180px;
    height: 360px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(44px, 13.2vw, 58px);
    line-height: 0.94;
    letter-spacing: -0.035em;
    overflow-wrap: normal;
  }

  h2 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 0.98;
  }

  .hero-copy .sub {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.56;
  }

  .mobile-proof-inline {
    margin-top: 20px;
  }

  .mobile-proof-inline span {
    border-radius: 7px;
    font-size: 11px;
  }

  .hero-trust.commission-line {
    margin-top: 28px;
    border-radius: 11px;
    padding: 66px 20px 22px;
    font-size: 18px;
    line-height: 1.32;
  }

  .hero-trust.commission-line::before {
    top: 30px;
    left: 20px;
  }

  .hero-trust.commission-line::after {
    top: 21px;
    right: 20px;
  }

  .hero-ctas {
    display: grid;
    margin-top: 28px;
  }

  .hero-textlink {
    width: fit-content;
  }

  .strip .wrap {
    width: 100%;
  }

  .strip strong {
    margin-right: 14px;
    margin-left: 14px;
    text-align: center;
  }

  .logo-tile,
  .logo-tile.proof {
    min-height: 60px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .portal-section .card.highlight {
    min-height: 0;
    padding: 30px 0 30px 58px;
  }

  .portal-section .card.highlight::before {
    top: 35px;
    width: 14px;
    height: 14px;
  }

  .portal-section .card.highlight::after {
    top: 42px;
    left: 22px;
    width: 24px;
  }

  .portal-section .card.highlight h3 {
    font-size: 24px;
  }

  .role-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 50px;
  }

  .role-card {
    border-right: 0;
    border-bottom: 1px solid var(--motion-line);
    padding: 28px 0;
  }

  .role-card:last-child {
    border-bottom: 0;
  }

  .role-card .icon {
    margin-bottom: 20px;
  }

  .portal-bridge {
    margin-top: 86px;
    text-align: left;
  }

  .portal-bridge .eyebrow {
    justify-content: flex-start;
  }

  .portal-bridge h3 {
    font-size: 40px;
  }

  .phone {
    width: min(350px, calc(100vw - 32px));
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .reviews-head {
    gap: 30px;
  }

  .google-score {
    width: 100%;
  }

  .reviews-columns {
    width: min(100% - 28px, 340px);
    height: 600px;
    margin-top: 36px;
  }

  .review-card {
    padding: 25px;
  }

  .ba-main figcaption,
  .project-gallery-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ba-main figcaption {
    padding: 17px 18px;
  }

  .ba-tag {
    top: 12px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .ba-tag-before {
    left: 12px;
  }

  .ba-tag-after {
    right: 12px;
  }

  .ba-divider::after {
    width: 42px;
    height: 42px;
  }

  .project-gallery-head {
    margin-top: 34px;
  }

  .project-card {
    flex-basis: 253px;
    width: 253px;
  }

  .project-card img {
    height: 316px;
  }

  .qualification-form {
    border-radius: 11px;
    padding: 18px;
  }

  .cta-panel {
    border-radius: 22px;
    padding: 34px 20px;
  }


  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticky-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    border-radius: 12px;
    padding: 7px;
  }

  .sticky-cta span {
    padding-left: 8px;
    font-size: 11px;
  }

  .sticky-cta .btn {
    min-height: 42px;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 11px;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .hero-stage {
    padding-right: 356px;
    padding-left: 56px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 5.4vw, 64px);
  }

  .hero-showcase {
    right: 30px;
    width: 300px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 70px 0 118px;
  }

  .hero-stage {
    min-height: 0;
    padding: 56px 44px 0;
  }

  .hero-stage-art {
    border-radius: 28px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 8.8vw, 68px);
  }

  .hero-showcase {
    position: relative;
    top: auto;
    right: auto;
    width: min(324px, calc(100vw - 104px));
    margin: 54px auto -72px;
  }

  .hero-stage-art::before {
    top: 48%;
    right: -28%;
    width: 90%;
  }

  .hero-stage-art::after {
    right: auto;
    bottom: -16%;
    left: -30%;
    width: 92%;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 28px 0 92px;
  }

  .hero-grid {
    width: min(100% - 28px, 1240px);
  }

  .hero-stage {
    padding: 56px 22px 0;
  }

  .hero-stage-art {
    border-radius: 22px;
  }

  .hero .eyebrow {
    white-space: normal;
  }

  .hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(39px, 11.4vw, 52px);
    line-height: 1;
  }

  .hero-script {
    font-size: 1.03em;
  }

  .hero-copy .sub {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-ctas {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-textlink {
    width: fit-content;
  }

  .hero-proof-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    margin-top: 28px;
  }

  .hero-proof-rail span {
    padding-left: 13px;
    font-size: 9px;
    line-height: 1.25;
  }

  .hero-showcase {
    width: min(286px, calc(100vw - 62px));
    margin-top: 42px;
    margin-bottom: -62px;
  }

  .hero-phone-frame {
    border-radius: 46px;
    padding: 8px;
  }

  .hero-app-screen {
    border-radius: 37px;
  }

  .hero-app-header {
    padding: 33px 15px 10px;
  }

  .hero-app-header img {
    width: 76px;
    margin-bottom: 10px;
  }

  .hero-app-header p {
    font-size: 16px;
  }

  .hero-app-header > span {
    margin-top: 5px;
  }

  .hero-app-commission {
    margin: 10px 12px 7px;
    padding: 14px;
  }

  .hero-app-commission strong {
    margin-top: 5px;
    font-size: 24px;
  }

  .hero-app-commission span {
    margin-top: 8px;
    padding: 5px 8px;
  }

  .hero-app-meta {
    padding: 2px 15px 6px;
  }

  .hero-app-leads {
    gap: 6px;
    padding: 0 12px 62px;
  }

  .hero-app-leads article {
    padding: 9px 9px 15px;
  }

  .hero-app-leads article small {
    margin-top: 2px;
  }

  .hero-app-leads article i {
    right: 9px;
    bottom: 6px;
    left: 9px;
  }

  .hero-app-cta {
    right: 14px;
    bottom: 12px;
    left: 14px;
    padding: 12px;
  }
}

@media (min-width: 1181px) and (min-height: 861px) {
  .hero-stage {
    min-height: 620px;
  }
}

/* Keep the complete hero visible on short laptop screens while preserving
   the phone overlap used by the larger desktop composition. */
@media (min-width: 981px) and (max-height: 860px) {
  .hero {
    min-height: calc(100svh - 84px);
    align-items: stretch;
    padding: clamp(40px, 6svh, 52px) 0 clamp(26px, 4svh, 42px);
  }

  .hero-stage {
    height: min(570px, 68.5svh);
    min-height: min(570px, 68.5svh);
    padding-top: clamp(30px, 6svh, 52px);
    padding-right: clamp(300px, 49svh, 380px);
    padding-bottom: clamp(28px, 5svh, 44px);
    padding-left: clamp(44px, 4.5vw, 66px);
  }

  .hero-copy h1 {
    margin-top: clamp(16px, 2.6svh, 22px);
    font-size: clamp(48px, 7.8svh, 64px);
    line-height: 0.96;
  }

  .hero-copy .sub {
    margin-top: clamp(14px, 2.6svh, 22px);
    font-size: clamp(15px, 2.25svh, 18px);
    line-height: 1.45;
  }

  .hero-ctas {
    margin-top: clamp(18px, 3svh, 25px);
  }

  .hero > .hero-grid .hero-showcase {
    top: max(-48px, -5.8svh);
    right: clamp(30px, 4vw, 62px);
    width: min(300px, 35.55svh);
  }

  .hero-stage > .hero-showcase .hero-app-leads article > span {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }
}

@media (max-width: 980px) {
  .portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    margin-top: 34px;
  }

  .portal-grid .phone-column {
    position: sticky;
    top: 78px;
    z-index: 3;
    display: flex;
    min-height: 58svh;
    align-items: center;
    align-self: start;
    flex-direction: column;
    justify-content: flex-start;
    pointer-events: none;
  }

  .portal-grid .phone-hint {
    width: min(292px, calc(100vw - 40px));
    margin-bottom: 8px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .portal-grid .hero-showcase {
    width: min(202px, calc(100vw - 82px), calc((58svh - 62px) * 390 / 844));
    margin: 0 auto;
  }

  .portal-grid .hero-app-header {
    padding-top: 29px;
  }

  .portal-story-form {
    top: 82px;
    right: 10px;
    left: 10px;
    gap: 5px;
    border-radius: 12px;
    padding: 10px;
  }

  .portal-story-form > strong {
    font-size: 13px;
  }

  .portal-story-form > div {
    padding: 6px 7px;
  }

  .portal-story-form > div span,
  .portal-story-form > div b,
  .portal-story-form > em {
    font-size: 6px;
  }

  .portal-side-cards {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 92svh;
    justify-content: flex-end;
    border-top-color: rgba(15, 24, 52, 0.12);
    padding: 60svh 0 96px;
    opacity: 0.42;
    transform: translateY(12px);
  }

  .portal-section .portal-side-cards .portal-story-card.is-active {
    border-top-color: rgba(115, 189, 36, 0.72);
    transform: translateY(0);
  }

  .portal-section .portal-side-cards .portal-story-card::before,
  .portal-section .portal-side-cards .portal-story-card::after {
    display: none;
  }

  .portal-section .portal-side-cards .portal-story-card h3 {
    font-size: clamp(24px, 7.2vw, 34px);
  }

  .portal-section .portal-side-cards .portal-story-card p {
    font-size: 14px;
    line-height: 1.55;
  }
}

@media (max-width: 980px) and (max-height: 720px) {
  .portal-grid .phone-hint {
    display: none;
  }

  .portal-section .portal-side-cards .portal-story-card {
    padding-top: 63svh;
  }

  .portal-story-kicker {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-progress {
    display: none;
  }

  .motion-hero-light {
    display: none;
  }

  .hero-copy > *,
  .hero-stage-art,
  .hero-showcase,
  .hero-phone-frame,
  .portal-section .card.highlight,
  .role-card,
  .portal-bridge,
  .phone,
  .leroy-badge,
  .quote-card,
  .quality,
  .reviews-head > *,
  .review-column,
  .ba-main,
  .cta-copy > * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    clip-path: none !important;
  }

  .sticky-cta {
    transition: none;
  }

  .portal-grid .phone-column {
    position: relative;
    top: auto;
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 0;
    opacity: 1;
    transform: none;
  }
}

/* Portal phone refinement (2026-07-28).
   Kept as one isolated override block so the design pass can be reverted safely. */
.portal-grid .hero-showcase {
  container-type: inline-size;
  filter: drop-shadow(0 30px 34px rgba(36, 61, 43, 0.15));
  rotate: -1deg;
  transition: opacity 420ms ease, translate 520ms var(--motion-ease);
  will-change: auto;
}

.portal-grid [data-portal-step],
.portal-grid [data-portal-step="2"],
.portal-grid [data-portal-step="3"],
.portal-grid [data-portal-step="4"],
.portal-grid [data-portal-step="5"] {
  rotate: 0deg;
  transition: none;
}

.portal-grid .hero-phone-frame {
  border-radius: 52px;
  border-radius: 16cqw;
  padding: 9px;
  padding: 2.78cqw;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset -7px 0 12px rgba(255, 255, 255, 0.03),
    0 24px 58px rgba(24, 35, 50, 0.18),
    0 8px 20px rgba(50, 78, 54, 0.1);
}

.portal-grid .hero-phone-frame::before {
  top: 15px;
  top: 4.63cqw;
  width: 108px;
  width: 33.33cqw;
  height: 27px;
  height: 8.33cqw;
}

.portal-grid .hero-phone-frame::after {
  top: 23px;
  top: 7.1cqw;
  left: calc(50% + 34px);
  left: calc(50% + 10.49cqw);
  width: 7px;
  width: 2.16cqw;
  height: 7px;
  height: 2.16cqw;
}

.portal-grid .hero-phone-button {
  left: -6px;
  left: -1.85cqw;
  width: 5px;
  width: 1.54cqw;
}

.portal-grid .hero-phone-button-one {
  top: 130px;
  top: 40.12cqw;
  height: 32px;
  height: 9.88cqw;
}

.portal-grid .hero-phone-button-two {
  top: 174px;
  top: 53.7cqw;
  height: 64px;
  height: 19.75cqw;
}

.portal-grid .hero-app-screen {
  border-radius: 42px;
  border-radius: 12.96cqw;
  background: #f3f6f3;
}

.portal-grid .hero-app-header {
  padding: 38px 18px 16px;
  padding: 11.73cqw 5.56cqw 4.94cqw;
}

.portal-grid .hero-app-header img {
  width: 86px;
  width: 26.54cqw;
  margin-bottom: 18px;
  margin-bottom: 5.56cqw;
}

.portal-grid .hero-app-header p {
  font-size: 17px;
  font-size: 5.25cqw;
}

.portal-grid .hero-app-header > span {
  margin-top: 8px;
  margin-top: 2.47cqw;
  font-size: max(10px, 2.78cqw);
}

.portal-grid .hero-app-commission {
  margin: 14px 14px 10px;
  margin: 4.32cqw 4.32cqw 3.09cqw;
  border-radius: 19px;
  border-radius: 5.86cqw;
  padding: 18px;
  padding: 5.56cqw;
  box-shadow: 0 14px 30px rgba(71, 126, 35, 0.18);
  transition: opacity 300ms ease, transform 420ms var(--motion-ease), filter 300ms ease, box-shadow 300ms ease;
}

.portal-grid .hero-app-commission small {
  font-size: max(10px, 2.47cqw);
}

.portal-grid .hero-app-commission strong {
  margin-top: 7px;
  margin-top: 2.16cqw;
  font-size: 26px;
  font-size: 8.02cqw;
}

.portal-grid .hero-app-commission span {
  margin-top: 12px;
  margin-top: 3.7cqw;
  padding: 6px 9px;
  padding: 1.85cqw 2.78cqw;
  font-size: max(10px, 2.47cqw);
}

.portal-grid .hero-app-meta {
  padding: 3px 18px 9px;
  padding: 0.93cqw 5.56cqw 2.78cqw;
  gap: max(2px, 0.62cqw);
  font-size: max(10px, 2.47cqw);
  line-height: 1.25;
  transition: opacity 300ms ease, transform 420ms var(--motion-ease), filter 300ms ease;
}

.portal-grid .hero-app-leads {
  gap: 8px;
  gap: 2.47cqw;
  padding: 0 14px 76px;
  padding: 0 4.32cqw 23.46cqw;
  transition: opacity 300ms ease, transform 420ms var(--motion-ease), filter 300ms ease;
}

.portal-grid .hero-app-leads article {
  gap: 9px;
  gap: 2.78cqw;
  border-radius: 13px;
  border-radius: 4.01cqw;
  padding: 12px 11px 18px;
  padding: 3.7cqw 3.4cqw 5.56cqw;
  box-shadow: none;
}

.portal-grid .hero-app-leads article:nth-child(n + 3) {
  display: none;
}

.portal-grid .hero-app-leads article b {
  font-size: max(12px, 3.09cqw);
}

.portal-grid .hero-app-leads article small {
  margin-top: 4px;
  margin-top: 1.23cqw;
  font-size: max(10px, 2.16cqw);
  line-height: 1.25;
}

.portal-grid .hero-app-leads article > span {
  min-height: 23px;
  min-height: 7.1cqw;
  padding: 6px 8px;
  padding: 1.85cqw 2.47cqw;
  font-size: max(10px, 2.47cqw);
}

.portal-grid .hero-app-leads article i {
  right: 11px;
  right: 3.4cqw;
  bottom: 9px;
  bottom: 2.78cqw;
  left: 11px;
  left: 3.4cqw;
  gap: 3px;
  gap: 0.93cqw;
}

.portal-grid .hero-app-leads article i u {
  height: 3px;
  height: 0.93cqw;
}

.portal-grid .hero-app-leads article[data-pipeline-status="rdv"] i u:nth-child(n + 3) {
  background: #e1e5eb;
}

.portal-grid .hero-app-cta {
  z-index: 20;
  right: 16px;
  right: 4.94cqw;
  bottom: 17px;
  bottom: 5.25cqw;
  left: 16px;
  left: 4.94cqw;
  border-radius: 12px;
  border-radius: 3.7cqw;
  padding: 14px;
  padding: 4.32cqw;
  font-size: max(11px, 3.09cqw);
  box-shadow: 0 12px 24px rgba(70, 127, 31, 0.2);
}

.portal-grid .portal-story-form {
  top: 100px;
  top: 30.86cqw;
  right: 14px;
  right: 4.32cqw;
  left: 14px;
  left: 4.32cqw;
  gap: 7px;
  gap: 2.16cqw;
  border-radius: 16px;
  border-radius: 4.94cqw;
  padding: 15px;
  padding: 4.63cqw;
  box-shadow: 0 22px 48px rgba(27, 42, 58, 0.2), 0 8px 18px rgba(64, 92, 63, 0.1);
}

.portal-grid .portal-story-form > small,
.portal-grid .portal-story-form > div span,
.portal-grid .portal-story-form > em {
  font-size: max(9px, 2.16cqw);
}

.portal-grid .portal-story-form > strong {
  font-size: max(16px, 5.25cqw);
}

.portal-grid .portal-story-form > div {
  gap: 10px;
  gap: 3.09cqw;
  border-radius: 8px;
  border-radius: 2.47cqw;
  padding: 8px 9px;
  padding: 2.47cqw 2.78cqw;
}

.portal-grid .portal-story-form > div b {
  font-size: max(10px, 2.47cqw);
}

.portal-story-focus {
  position: absolute;
  z-index: 17;
  top: 122px;
  top: 37.65cqw;
  right: 14px;
  right: 4.32cqw;
  left: 14px;
  left: 4.32cqw;
  display: grid;
  gap: 16px;
  gap: 4.94cqw;
  overflow: hidden;
  border: 1px solid rgba(42, 65, 52, 0.12);
  border-radius: 20px;
  border-radius: 6.17cqw;
  padding: 18px;
  padding: 5.56cqw;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 24px 52px rgba(27, 42, 58, 0.18), 0 8px 20px rgba(64, 92, 63, 0.09);
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 280ms ease, transform 420ms var(--motion-ease), visibility 0s linear 0s, border-color 280ms ease;
}

.portal-story-focus[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.975);
  transition: opacity 220ms ease, transform 320ms var(--motion-ease), visibility 0s linear 320ms;
}

.portal-story-focus-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  gap: 3.7cqw;
}

.portal-story-focus-heading > div {
  min-width: 0;
}

.portal-story-focus-heading small,
.portal-story-focus-meta small {
  display: block;
  color: #748078;
  font-size: max(9px, 2.16cqw);
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-story-focus-heading > div > strong {
  display: block;
  margin-top: 4px;
  margin-top: 1.23cqw;
  color: var(--motion-navy);
  font-size: max(17px, 5.56cqw);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.portal-story-focus-heading > div > span {
  display: block;
  margin-top: 5px;
  margin-top: 1.54cqw;
  color: #707b78;
  font-size: max(10px, 2.47cqw);
  line-height: 1.35;
}

.portal-story-focus-heading > b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 8px;
  padding: 1.85cqw 2.47cqw;
  background: #edf6dd;
  color: #4f861d;
  font-size: max(10px, 2.16cqw);
  line-height: 1;
  white-space: nowrap;
}

.portal-story-track {
  --story-progress: 34%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  gap: 1.23cqw;
}

.portal-story-track::before,
.portal-story-track::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  top: 3.09cqw;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  height: 0.62cqw;
  background: #dfe4df;
}

.portal-story-track::after {
  right: auto;
  width: var(--story-progress);
  background: var(--motion-green);
  transition: width 420ms var(--motion-ease);
}

.portal-story-track span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  gap: 1.85cqw;
  color: #89938c;
  text-align: center;
}

.portal-story-track i {
  display: grid;
  width: 21px;
  width: 6.48cqw;
  height: 21px;
  height: 6.48cqw;
  place-items: center;
  border: 2px solid #dfe4df;
  border-radius: 50%;
  background: #fff;
  color: #89938c;
  font-size: max(9px, 2.16cqw);
  font-style: normal;
  font-weight: 900;
}

.portal-story-track small {
  font-size: max(9px, 2.16cqw);
  font-weight: 760;
}

[data-portal-step="2"] .portal-story-track span:nth-child(-n + 2),
[data-portal-step="3"] .portal-story-track span:nth-child(-n + 3) {
  color: var(--motion-navy);
}

[data-portal-step="2"] .portal-story-track span:nth-child(-n + 2) i,
[data-portal-step="3"] .portal-story-track span:nth-child(-n + 3) i {
  border-color: var(--motion-green);
  background: var(--motion-green);
  color: #fff;
}

[data-portal-step="3"] .portal-story-track {
  --story-progress: 67%;
}

[data-portal-step="3"] .portal-story-focus-heading > b {
  background: var(--motion-navy);
  color: #fff;
}

.portal-story-focus-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  gap: 2.47cqw;
  padding-top: 14px;
  padding-top: 4.32cqw;
  border-top: 1px solid #e3e8e3;
}

.portal-story-focus-meta > div {
  min-width: 0;
}

.portal-story-focus-meta strong {
  display: block;
  margin-top: 5px;
  margin-top: 1.54cqw;
  overflow: hidden;
  color: var(--motion-navy);
  font-size: max(10px, 2.47cqw);
  line-height: 1.3;
  text-overflow: ellipsis;
}

.portal-story-stats {
  position: absolute;
  z-index: 18;
  top: 122px;
  top: 37.65cqw;
  right: 14px;
  right: 4.32cqw;
  bottom: 14px;
  bottom: 4.32cqw;
  left: 14px;
  left: 4.32cqw;
  display: grid;
  grid-template-rows: auto auto auto minmax(min-content, 1fr);
  gap: 8px;
  gap: 2.47cqw;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  border-radius: 4.94cqw;
  padding: 2px;
  padding: 0.62cqw;
  background: #f3f6f3;
  box-shadow: none;
  scrollbar-width: none;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 280ms ease, transform 420ms var(--motion-ease), visibility 0s linear 0s;
}

.portal-story-stats::-webkit-scrollbar {
  display: none;
}

.portal-story-stats[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.975);
  transition: opacity 220ms ease, transform 320ms var(--motion-ease), visibility 0s linear 320ms;
}

.portal-story-stats-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: max(8px, 2.47cqw);
  padding: 0 max(4px, 1.23cqw);
}

.portal-story-stats-toolbar small {
  display: block;
  color: var(--motion-green);
  font-size: max(8px, 1.85cqw);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-story-stats-toolbar strong {
  display: block;
  margin-top: max(2px, 0.62cqw);
  color: var(--motion-navy);
  font-size: max(15px, 4.63cqw);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.portal-story-stats-toolbar > span {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 35, 79, 0.12);
  border-radius: 999px;
  padding: max(5px, 1.54cqw) max(7px, 2.16cqw);
  background: #fff;
  color: #59635d;
  font-size: max(8px, 1.85cqw);
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.portal-story-stats-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: max(5px, 1.54cqw) max(8px, 2.47cqw);
  border-radius: max(13px, 4.01cqw);
  padding: max(10px, 3.09cqw);
  background: linear-gradient(145deg, #65b72a 0%, #4ba71d 100%);
  box-shadow: 0 10px 24px rgba(68, 139, 25, 0.2);
  color: #fff;
}

.portal-story-stats-summary > div {
  min-width: 0;
}

.portal-story-stats-summary span {
  display: block;
  min-height: 2.35em;
  color: rgba(255, 255, 255, 0.82);
  font-size: max(8px, 1.85cqw);
  font-weight: 760;
  line-height: 1.18;
}

.portal-story-stats-summary strong {
  display: block;
  margin-top: max(2px, 0.62cqw);
  color: #fff;
  font-size: max(18px, 5.56cqw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.portal-story-stats-summary [data-portal-stat="commission"] {
  font-size: max(15px, 4.32cqw);
  white-space: nowrap;
}

.portal-story-stats-chart,
.portal-story-stats-status {
  border: 1px solid rgba(24, 35, 79, 0.08);
  border-radius: max(13px, 4.01cqw);
  background: #fff;
  box-shadow: 0 7px 18px rgba(24, 35, 79, 0.055);
}

.portal-story-stats-chart {
  display: grid;
  gap: max(3px, 0.93cqw);
  padding: max(8px, 2.47cqw) max(10px, 3.09cqw) max(7px, 2.16cqw);
}

.portal-story-stats-chart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: max(8px, 2.47cqw);
}

.portal-story-stats-chart-heading small,
.portal-story-stats-status > div > small {
  display: block;
  color: #68736c;
  font-size: max(8px, 1.85cqw);
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.portal-story-stats-chart-heading strong {
  display: block;
  margin-top: max(2px, 0.62cqw);
  color: var(--motion-navy);
  font-size: max(17px, 5.25cqw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.portal-story-stats-chart-heading > span {
  border-radius: 999px;
  padding: max(4px, 1.23cqw) max(6px, 1.85cqw);
  background: #edf7e5;
  color: #4e931e;
  font-size: max(8px, 1.85cqw);
  font-weight: 900;
  line-height: 1;
}

.portal-story-stats-chart svg {
  display: block;
  width: 100%;
  height: clamp(42px, 14.2cqw, 58px);
  overflow: visible;
}

.portal-story-chart-grid {
  stroke: #e6ebe7;
  stroke-width: 1;
}

.portal-story-chart-area {
  fill: rgba(115, 189, 36, 0.11);
}

.portal-story-chart-line {
  fill: none;
  stroke: var(--motion-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}

[data-portal-step="5"] .portal-story-chart-line {
  animation: portalStatsLineDraw 760ms var(--motion-ease) 120ms forwards;
}

.portal-story-chart-point {
  fill: var(--motion-green);
  stroke: #fff;
  stroke-width: 2;
}

@keyframes portalStatsLineDraw {
  to { stroke-dashoffset: 0; }
}

.portal-story-stats-months {
  display: flex;
  justify-content: space-between;
  color: #7b857e;
  font-size: max(7px, 1.65cqw);
  font-weight: 720;
  line-height: 1;
}

.portal-story-stats-status {
  display: grid;
  grid-template-columns: minmax(82px, 0.85fr) minmax(0, 1.15fr);
  gap: max(10px, 3.09cqw);
  align-items: center;
  min-height: 0;
  padding: max(10px, 3.09cqw) max(12px, 3.7cqw);
}

.portal-story-stats-donut {
  position: relative;
  display: grid;
  width: clamp(64px, 22cqw, 84px);
  aspect-ratio: 1;
  margin: max(8px, 2.47cqw) auto 0;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#77bf37 0 20.83%, #4e7bea 20.83% 45.83%, #6687ef 45.83% 75%, #f2b427 75% 87.5%, #8d54dc 87.5% 100%);
}

.portal-story-stats-donut::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  background: #fff;
}

.portal-story-stats-donut > span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.portal-story-stats-donut strong {
  color: var(--motion-navy);
  font-size: max(14px, 4.32cqw);
  line-height: 1;
}

.portal-story-stats-donut small {
  color: #7b857e;
  font-size: max(7px, 1.65cqw);
  font-weight: 760;
}

.portal-story-stats-status ul {
  display: grid;
  gap: max(4px, 1.23cqw);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-story-stats-status li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: max(6px, 1.85cqw);
  align-items: center;
  min-width: 0;
  color: #59635d;
  font-size: max(8px, 1.85cqw);
  font-weight: 720;
  line-height: 1.15;
}

.portal-story-stats-status li i {
  width: max(7px, 2.16cqw);
  height: max(7px, 2.16cqw);
  border-radius: 50%;
  background: #77bf37;
}

.portal-story-stats-status li:nth-child(2) i { background: #4e7bea; }
.portal-story-stats-status li:nth-child(3) i { background: #6687ef; }
.portal-story-stats-status li:nth-child(4) i { background: #f2b427; }
.portal-story-stats-status li:nth-child(5) i { background: #8d54dc; }

.portal-story-stats-status li b {
  color: var(--motion-navy);
  font-weight: 900;
}

/* Keep the complete second-phone story readable at its real rendered size. */
.portal-grid .hero-app-header > span,
.portal-grid .hero-app-commission small,
.portal-grid .hero-app-commission span,
.portal-grid .hero-app-meta,
.portal-grid .hero-app-leads article small,
.portal-grid .hero-app-leads article > span,
.portal-grid .portal-story-form > div b,
.portal-story-focus-heading > div > span,
.portal-story-focus-heading > b,
.portal-story-focus-meta strong {
  font-size: max(11px, 2.78cqw);
}

.portal-grid .portal-story-form > small,
.portal-grid .portal-story-form > div span,
.portal-grid .portal-story-form > em,
.portal-story-focus-heading small,
.portal-story-focus-meta small,
.portal-story-track i,
.portal-story-track small {
  font-size: max(10px, 2.47cqw);
}

.portal-grid .hero-app-leads article b {
  font-size: max(13px, 3.4cqw);
}

.portal-grid .portal-story-form > strong {
  font-size: max(17px, 5.56cqw);
}

.portal-story-focus-heading > div > strong {
  font-size: max(18px, 5.86cqw);
}

.portal-grid .hero-app-cta {
  font-size: max(12px, 3.4cqw);
}

.portal-story-stats-toolbar small,
.portal-story-stats-toolbar > span,
.portal-story-stats-summary span,
.portal-story-stats-chart-heading small,
.portal-story-stats-chart-heading > span {
  font-size: max(9px, 2.16cqw);
}

.portal-story-stats-status > div > small,
.portal-story-stats-status li {
  font-size: max(10px, 2.47cqw);
}

.portal-story-stats-toolbar strong {
  font-size: max(16px, 4.94cqw);
}

.portal-story-stats-summary strong {
  font-size: max(19px, 5.86cqw);
}

.portal-story-stats-summary [data-portal-stat="commission"] {
  font-size: max(16px, 4.63cqw);
}

.portal-story-stats-chart-heading strong {
  font-size: max(18px, 5.56cqw);
}

.portal-story-stats-months {
  font-size: max(8px, 1.85cqw);
}

.portal-story-stats-donut small {
  font-size: max(9px, 2.16cqw);
}

.portal-story-stats-donut strong {
  font-size: max(18px, 5.25cqw);
}

@container (max-width: 280px) {
  .portal-story-stats {
    gap: max(5px, 1.85cqw);
  }

  .portal-story-stats-toolbar {
    align-items: center;
  }

  .portal-story-stats-toolbar small {
    display: none;
  }

  .portal-story-stats-toolbar strong {
    margin-top: 0;
    font-size: max(15px, 4.63cqw);
    white-space: nowrap;
  }

  .portal-story-stats-toolbar > span {
    padding: max(4px, 1.23cqw) max(5px, 1.54cqw);
    font-size: max(8px, 1.85cqw);
  }

  .portal-story-stats-summary {
    gap: max(4px, 1.23cqw) max(7px, 2.16cqw);
    padding: max(8px, 2.47cqw);
  }

  .portal-story-stats-summary span {
    min-height: 2.15em;
  }

  .portal-story-stats-chart {
    padding: max(6px, 1.85cqw) max(8px, 2.47cqw) max(5px, 1.54cqw);
  }

  .portal-story-stats-chart svg {
    height: 38px;
  }

}

@container (max-width: 220px) {
  .portal-story-stats {
    gap: max(4px, 1.85cqw);
  }

  .portal-story-stats-chart svg {
    height: 32px;
  }

  .portal-story-stats-status {
    grid-template-columns: minmax(76px, 0.84fr) minmax(0, 1.16fr);
    gap: 8px;
    padding: 8px 9px;
  }

  .portal-story-stats-donut {
    width: 58px;
    margin-top: 6px;
  }

  .portal-story-stats-status ul {
    gap: 3px;
  }

  .portal-story-stats-status > div > small,
  .portal-story-stats-status li {
    font-size: 9.5px;
  }

  .portal-story-stats-status li {
    gap: 5px;
    line-height: 1.12;
  }

  .portal-story-stats-status li i {
    width: 6.5px;
    height: 6.5px;
  }

  .portal-story-stats-donut strong {
    font-size: 16px;
  }

  .portal-story-stats-donut small {
    font-size: 8.5px;
  }
}

[data-portal-step="5"] .hero-app-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

[data-portal-step="5"] .hero-app-header > span {
  visibility: hidden;
  opacity: 0;
}

[data-portal-step="2"] .hero-app-commission,
[data-portal-step="2"] .hero-app-meta,
[data-portal-step="2"] .hero-app-leads,
[data-portal-step="3"] .hero-app-commission,
[data-portal-step="3"] .hero-app-meta,
[data-portal-step="3"] .hero-app-leads {
  opacity: 0.1;
  filter: blur(0.8px) saturate(0.72);
  transform: scale(0.98);
}

[data-portal-step="3"] .portal-story-focus {
  border-color: rgba(115, 189, 36, 0.34);
}

[data-portal-step="5"] .hero-app-commission,
[data-portal-step="5"] .hero-app-meta,
[data-portal-step="5"] .hero-app-leads {
  visibility: hidden;
  opacity: 0;
  filter: none;
  transform: scale(0.98);
}

[data-portal-step="4"] .hero-app-commission {
  margin-top: 20px;
  margin-top: 6.17cqw;
  transform: scale(1.015);
}

.portal-grid .hero-app-commission.is-demo-active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(79, 152, 27, 0.28);
}

[data-portal-step="4"] .portal-story-lead.is-story-visible {
  border-color: rgba(115, 189, 36, 0.34);
  box-shadow: none;
}

.portal-story-kicker {
  color: rgba(24, 35, 79, 0.58);
  letter-spacing: 0.09em;
}

.portal-story-card.is-active .portal-story-kicker {
  color: var(--motion-green);
}

@media (min-width: 981px) {
  .portal-section .portal-side-cards .portal-story-card {
    padding-left: 36px;
  }

  .portal-section .portal-side-cards .portal-story-card::before {
    top: 50%;
    left: 0;
    width: 3px;
    height: 58px;
    border: 0;
    border-radius: 3px;
    background: rgba(24, 35, 79, 0.14);
    box-shadow: none;
    transform: translateY(-50%);
  }

  .portal-section .portal-side-cards .portal-story-card::after {
    display: none;
  }

  .portal-section .portal-side-cards .portal-story-card.is-active::before {
    background: var(--motion-green);
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .portal-grid .phone-column {
    min-height: 72svh;
  }

  .portal-grid .hero-showcase {
    width: min(232px, calc(100vw - 72px), calc((70svh - 20px) * 390 / 844));
    rotate: 0deg;
  }

  .portal-grid .hero-app-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-grid .hero-app-leads article {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-grid .hero-app-leads article > span,
  .portal-story-focus-heading > b {
    justify-self: start;
  }

  .portal-story-focus-heading,
  .portal-story-focus-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-story-focus-heading {
    display: grid;
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 104svh;
    padding: 72svh 0 112px;
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .portal-grid .hero-showcase {
    width: min(252px, calc(100vw - 120px), calc((72svh - 20px) * 390 / 844));
  }

  .portal-section .portal-side-cards .portal-story-card {
    padding-top: 75svh;
  }
}

@media (max-width: 980px) and (max-height: 720px) {
  .portal-grid .phone-column {
    min-height: 78svh;
  }

  .portal-grid .hero-showcase {
    width: min(220px, calc(100vw - 72px), calc((74svh - 14px) * 390 / 844));
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 118svh;
    padding-top: 80svh;
    padding-bottom: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-grid .hero-showcase,
  .portal-grid .hero-phone-frame,
  .portal-story-focus,
  .portal-story-stats,
  .portal-grid .hero-app-commission,
  .portal-grid .hero-app-meta,
  .portal-grid .hero-app-leads {
    transition: none !important;
  }

  .portal-story-chart-line {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Four-screen portal mockup (2026-07-29).
   The screen stack follows the supplied FEC app artwork while the transition
   mirrors the Webflow reference: every incoming screen physically slides up
   over the previous one inside a single clipped iPhone frame. */
.portal-grid .hero-showcase {
  width: min(326px, calc((100svh - 96px) * 390 / 844));
  max-width: min(326px, calc(100vw - 2rem));
  container-type: inline-size;
  rotate: 0deg;
  filter: drop-shadow(0 32px 38px rgba(28, 44, 36, 0.2));
}

.portal-grid .portal-scroll-phone {
  border-radius: 16cqw;
  padding: 2.78cqw;
  rotate: 0deg;
  background: linear-gradient(145deg, #282a2f, #030405 31%, #181a1e 76%, #020304);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset -7px 0 12px rgba(255, 255, 255, 0.035),
    0 28px 68px rgba(14, 24, 35, 0.23);
}

.portal-grid .portal-scroll-phone::before {
  top: 4.63cqw;
  width: 33.33cqw;
  height: 8.33cqw;
}

.portal-grid .portal-scroll-phone::after {
  top: 7.1cqw;
  left: calc(50% + 10.49cqw);
  width: 2.16cqw;
  height: 2.16cqw;
}

.portal-grid .portal-scroll-phone .hero-phone-button-one {
  top: 40.12cqw;
  height: 9.88cqw;
}

.portal-grid .portal-scroll-phone .hero-phone-button-two {
  top: 53.7cqw;
  height: 19.75cqw;
}

.portal-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.portal-phone-viewport,
.portal-screen-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.portal-phone-viewport {
  overflow: hidden;
  border-radius: 12.96cqw;
  background: #f7f9f6;
  color: #101735;
  isolation: isolate;
}

.portal-screen-stack {
  position: absolute;
  inset: 0;
}

.portal-app-page {
  position: absolute;
  z-index: calc(var(--screen-index) + 1);
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 2%, rgba(213, 242, 59, 0.13), transparent 19%),
    linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
  color: #101735;
  font-family: Archivo, system-ui, sans-serif;
  transform: translate3d(0, 0, 0);
  transform-origin: center top;
  backface-visibility: hidden;
  will-change: transform, filter;
}

.portal-app-page:first-child {
  top: 0;
}

.portal-page-topbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  height: max(58px, 19cqw);
  align-items: flex-end;
  justify-content: space-between;
  padding: max(23px, 8.2cqw) 4.6cqw 2.1cqw;
  background: rgba(255, 255, 255, 0.96);
}

.portal-page-topbar img {
  width: max(72px, 27cqw);
  height: auto;
}

.portal-page-topbar > svg {
  width: max(17px, 5.9cqw);
  height: max(17px, 5.9cqw);
  fill: none;
  stroke: #101735;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-page-content {
  position: absolute;
  z-index: 1;
  top: max(58px, 19cqw);
  right: 0;
  bottom: max(50px, 16.2cqw);
  left: 0;
  overflow: hidden;
  padding: 3.5cqw 4.4cqw 3cqw;
}

.portal-page-heading h4 {
  margin: 0;
  color: #111943;
  font-size: max(17px, 6.25cqw);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.portal-page-heading p {
  margin: 2.6cqw 0 0;
  color: #3f4967;
  font-size: max(10.5px, 3.15cqw);
  line-height: 1.45;
}

.portal-contact-card,
.portal-detail-card,
.portal-results-grid > div,
.portal-results-chart {
  border: 1px solid rgba(17, 25, 67, 0.09);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 18px rgba(17, 25, 67, 0.055);
}

.portal-contact-card {
  margin-top: 4.6cqw;
  overflow: hidden;
  border-radius: 4.7cqw;
}

.portal-contact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 2.4cqw;
  align-items: center;
  min-height: max(39px, 12.5cqw);
  padding: 2.7cqw 3.2cqw;
}

.portal-contact-row + .portal-contact-row {
  border-top: 1px solid rgba(17, 25, 67, 0.08);
}

.portal-contact-row svg,
.portal-primary-action svg,
.portal-info-note svg {
  width: max(15px, 5.2cqw);
  height: max(15px, 5.2cqw);
  fill: none;
  stroke: #4aa916;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-contact-row small,
.portal-detail-card small {
  color: #36415e;
  font-size: max(9.5px, 2.8cqw);
  line-height: 1.25;
}

.portal-contact-row strong,
.portal-detail-card strong {
  color: #111943;
  font-size: max(9.8px, 2.9cqw);
  font-weight: 840;
  line-height: 1.25;
  text-align: right;
}

.portal-primary-action {
  display: flex;
  min-height: max(37px, 12.6cqw);
  align-items: center;
  justify-content: center;
  gap: 2.8cqw;
  margin-top: 4.2cqw;
  border-radius: 4.3cqw;
  background: linear-gradient(135deg, #69c619, #39a507);
  color: #fff;
  font-size: max(11.5px, 3.45cqw);
  font-weight: 860;
  box-shadow: 0 12px 24px rgba(62, 157, 11, 0.22);
}

.portal-primary-action svg {
  stroke: currentColor;
}

.portal-app-tabs {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: max(50px, 16.2cqw);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid rgba(17, 25, 67, 0.11);
  padding: 1.5cqw 1cqw max(3px, 0.9cqw);
  background: rgba(255, 255, 255, 0.98);
}

.portal-app-tabs > span {
  display: grid;
  justify-items: center;
  gap: 0.55cqw;
  min-width: 0;
  color: #27304d;
}

.portal-app-tabs i {
  font-size: max(16px, 5cqw);
  line-height: 1;
  font-style: normal;
  font-weight: 600;
}

.portal-app-tabs b {
  max-width: 100%;
  overflow: hidden;
  font-size: max(8px, 2.15cqw);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-app-tabs > span.is-active {
  color: #43a512;
}

.portal-app-tabs .portal-plus-tab i {
  display: grid;
  width: max(36px, 11.7cqw);
  height: max(36px, 11.7cqw);
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #72ca20, #3ba609);
  color: #fff;
  font-size: max(24px, 7.4cqw);
  font-weight: 500;
  box-shadow: 0 7px 14px rgba(61, 151, 15, 0.24);
}

.portal-page-tracking .portal-page-content,
.portal-page-payment .portal-page-content,
.portal-page-results .portal-page-content {
  padding-top: 4.4cqw;
}

.portal-tracking-card,
.portal-payment-card {
  margin-top: 3.8cqw;
  border-radius: 5cqw;
  padding: 4.1cqw;
  background: linear-gradient(145deg, #69c619 0%, #3aa507 100%);
  color: #fff;
  box-shadow: 0 13px 27px rgba(64, 158, 14, 0.23);
}

.portal-tracking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5cqw;
}

.portal-tracking-head > div {
  min-width: 0;
}

.portal-tracking-head strong,
.portal-tracking-head small {
  display: block;
}

.portal-tracking-head strong {
  font-size: max(14px, 4.25cqw);
  line-height: 1.1;
}

.portal-tracking-head small {
  margin-top: 1.5cqw;
  color: rgba(255, 255, 255, 0.9);
  font-size: max(9.2px, 2.6cqw);
  font-weight: 720;
}

.portal-tracking-head > span {
  flex: 0 0 auto;
  max-width: 39%;
  border-radius: 999px;
  padding: 1.45cqw 2cqw;
  background: rgba(244, 255, 224, 0.92);
  color: #3f7e10;
  font-size: max(8.5px, 2.15cqw);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.portal-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 5.2cqw;
}

.portal-stage-track::before {
  content: "";
  position: absolute;
  top: max(9px, 2.95cqw);
  right: 8%;
  left: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.portal-stage-track > span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.7cqw;
  color: rgba(255, 255, 255, 0.82);
}

.portal-stage-track i {
  display: grid;
  width: max(21px, 6.35cqw);
  height: max(21px, 6.35cqw);
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(54, 141, 9, 0.9);
  color: #fff;
  font-size: max(9px, 2.55cqw);
  font-style: normal;
  font-weight: 850;
}

.portal-stage-track .is-done i,
.portal-stage-track .is-current i {
  border-color: #fff;
  background: #fff;
  color: #4aa916;
}

.portal-stage-track small {
  font-size: max(9px, 2.25cqw);
  font-weight: 760;
}

.portal-detail-card {
  margin-top: 4cqw;
  overflow: hidden;
  border-radius: 4.4cqw;
}

.portal-detail-card > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2cqw;
  align-items: center;
  min-height: max(40px, 12.1cqw);
  padding: 2.8cqw 3.4cqw;
}

.portal-detail-card > div + div {
  border-top: 1px solid rgba(17, 25, 67, 0.08);
}

.portal-info-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3cqw;
  align-items: center;
  margin-top: 4cqw;
  border-radius: 4.2cqw;
  padding: 3.2cqw 3.5cqw;
  background: linear-gradient(135deg, #f2f7ea, #f8fbf4);
  color: #27384a;
}

.portal-info-note p,
.portal-info-note strong,
.portal-info-note span {
  display: block;
  margin: 0;
}

.portal-info-note strong {
  font-size: max(9.5px, 2.75cqw);
}

.portal-info-note span {
  margin-top: 1cqw;
  font-size: max(9px, 2.5cqw);
  line-height: 1.4;
}

.portal-payment-card > small {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: max(10px, 2.85cqw);
  font-weight: 820;
}

.portal-payment-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  margin-top: 2.2cqw;
}

.portal-payment-card > div strong {
  font-size: max(25px, 8.1cqw);
  line-height: 1;
  letter-spacing: -0.045em;
}

.portal-payment-card > div span {
  border-radius: 2.3cqw;
  padding: 1.9cqw 3.1cqw;
  background: rgba(248, 255, 236, 0.92);
  color: #397c0d;
  font-size: max(9.8px, 2.75cqw);
  font-weight: 780;
}

.portal-payment-card p {
  margin: 3.4cqw 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: max(10px, 2.85cqw);
  font-weight: 720;
  line-height: 1.45;
}

.portal-payment-details > div {
  min-height: max(34px, 10.4cqw);
  padding-top: 2.3cqw;
  padding-bottom: 2.3cqw;
}

.portal-page-results .portal-page-content {
  padding-right: 3.7cqw;
  padding-left: 3.7cqw;
}

.portal-results-period {
  display: flex;
  min-height: max(29px, 9.3cqw);
  align-items: center;
  justify-content: space-between;
  margin-top: 3.4cqw;
  border: 1px solid rgba(17, 25, 67, 0.09);
  border-radius: 3.2cqw;
  padding: 2.1cqw 3.2cqw;
  background: #fff;
  color: #38425d;
  font-size: max(9.5px, 2.7cqw);
  font-weight: 720;
}

.portal-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5cqw;
  margin-top: 3cqw;
}

.portal-results-grid > div {
  position: relative;
  min-height: max(66px, 21cqw);
  border-radius: 3.6cqw;
  padding: 3.2cqw;
}

.portal-results-grid small,
.portal-results-grid strong {
  display: block;
}

.portal-results-grid small {
  min-height: 2.2em;
  color: #35405c;
  font-size: max(9.2px, 2.55cqw);
  font-weight: 760;
  line-height: 1.12;
}

.portal-results-grid strong {
  margin-top: 1.6cqw;
  color: #101735;
  font-size: max(18px, 5.7cqw);
  line-height: 1;
}

.portal-results-grid em {
  position: absolute;
  right: 2.5cqw;
  bottom: 2.4cqw;
  border-radius: 999px;
  padding: 1.1cqw 1.8cqw;
  background: #eef8e4;
  color: #4d931c;
  font-size: max(8.2px, 2.05cqw);
  font-style: normal;
  font-weight: 850;
}

.portal-results-grid > div.is-total {
  border-color: transparent;
  background: linear-gradient(145deg, #1d6a35, #0e4d2b);
}

.portal-results-grid > div.is-total small,
.portal-results-grid > div.is-total strong {
  color: #fff;
}

.portal-results-grid > div.is-total strong {
  font-size: max(15px, 4.8cqw);
  white-space: nowrap;
}

.portal-results-grid > div.is-total em {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.portal-results-chart {
  margin-top: 3cqw;
  border-radius: 4cqw;
  padding: 3.3cqw 3.5cqw 2.5cqw;
}

.portal-results-chart > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
}

.portal-results-chart small {
  color: #30405d;
  font-size: max(9.2px, 2.5cqw);
  font-weight: 760;
}

.portal-results-chart > div:first-child span {
  border-radius: 999px;
  padding: 1.1cqw 1.8cqw;
  background: #eef8e4;
  color: #4d931c;
  font-size: max(8.2px, 2.05cqw);
  font-weight: 850;
}

.portal-results-chart > strong {
  display: block;
  margin-top: 1.8cqw;
  color: #111943;
  font-size: max(18px, 5.8cqw);
  line-height: 1;
  letter-spacing: -0.035em;
}

.portal-results-chart svg {
  display: block;
  width: 100%;
  height: max(63px, 20cqw);
  margin-top: 1cqw;
  overflow: visible;
}

.portal-results-area {
  fill: rgba(105, 198, 25, 0.12);
}

.portal-results-line {
  fill: none;
  stroke: #49a814;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
}

.portal-results-points {
  fill: #49a814;
}

[data-portal-step="4"] .portal-results-line {
  animation: portalResultsLineDraw 820ms var(--motion-ease) 120ms forwards;
}

@keyframes portalResultsLineDraw {
  to { stroke-dashoffset: 0; }
}

.portal-results-months {
  display: flex;
  justify-content: space-between;
  margin-top: -1.5cqw;
  color: #68738a;
  font-size: max(8.2px, 2.1cqw);
  font-weight: 680;
}

.phone-column {
  top: max(84px, 9svh);
}

.portal-section .portal-side-cards .portal-story-card {
  min-height: min(94svh, 780px);
}

.portal-story-kicker {
  color: rgba(24, 35, 79, 0.58);
  letter-spacing: 0.09em;
}

.portal-story-card.is-active .portal-story-kicker {
  color: var(--motion-green);
}

@media (min-width: 981px) {
  .portal-side-cards {
    padding-bottom: 110px;
  }

  .portal-section .portal-side-cards .portal-story-card {
    padding-left: 36px;
  }

  .portal-section .portal-side-cards .portal-story-card::before {
    top: 50%;
    left: 0;
    width: 3px;
    height: 58px;
    border: 0;
    border-radius: 3px;
    background: rgba(24, 35, 79, 0.14);
    box-shadow: none;
    transform: translateY(-50%);
  }

  .portal-section .portal-side-cards .portal-story-card::after {
    display: none;
  }

  .portal-section .portal-side-cards .portal-story-card.is-active::before {
    background: var(--motion-green);
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .portal-grid .phone-column {
    top: 76px;
    min-height: 78svh;
  }

  .portal-grid .hero-showcase {
    width: min(250px, calc(100vw - 64px), calc((76svh - 16px) * 390 / 844));
    max-width: calc(100vw - 64px);
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 112svh;
    padding: 78svh 0 112px;
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .portal-grid .hero-showcase {
    width: min(270px, calc(100vw - 120px), calc((78svh - 18px) * 390 / 844));
  }
}

@media (max-width: 980px) and (max-height: 720px) {
  .portal-grid .phone-column {
    min-height: 82svh;
  }

  .portal-grid .hero-showcase {
    width: min(226px, calc(100vw - 64px), calc((78svh - 10px) * 390 / 844));
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 122svh;
    padding-top: 84svh;
    padding-bottom: 112px;
  }
}

/* Webflow sticky-node handoff, translated one-for-one to the FEC palette. */
.portal-side-cards {
  isolation: isolate;
  gap: 0;
  padding-bottom: 0;
}

.portal-progress-rail {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 3px;
  background: rgba(24, 35, 79, 0.18);
  pointer-events: none;
}

.portal-progress-runner {
  position: sticky;
  z-index: 1;
  inset: 0 auto 50svh 0;
  display: block;
  width: 100%;
  height: 50svh;
  max-height: none;
  background: linear-gradient(to bottom, #d4f24b, #79c82b 50%, #3b9f13);
}

.portal-section .portal-side-cards .portal-story-card {
  z-index: 1;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

.portal-progress-node {
  position: sticky;
  z-index: 3;
  top: 50svh;
  display: block;
  width: 25px;
  min-width: 25px;
  max-width: 25px;
  height: 25px;
  min-height: 25px;
  max-height: 25px;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  margin: 64px 0 0 -3px;
  border: 0;
  border-radius: 50%;
  background: var(--motion-green);
  box-shadow: 0 0 0 8px var(--motion-paper);
  transform: none;
  transition: none;
}

.portal-progress-node.is-active {
  background: var(--motion-green);
  box-shadow: 0 0 0 8px var(--motion-paper);
  transform: none;
}

.portal-story-content {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
  opacity: 0.34;
  transform: translateX(16px) scale(0.985);
  transition: opacity 360ms ease, transform 520ms var(--motion-ease);
}

.portal-story-card.is-active .portal-story-content {
  opacity: 1;
  transform: none;
}

.portal-section .portal-side-cards .portal-story-card::before,
.portal-section .portal-side-cards .portal-story-card::after {
  display: none;
}

@media (max-width: 980px) {
  .portal-section .portal-side-cards .portal-story-card {
    min-height: 112svh;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 0;
  }

  .portal-progress-node {
    width: 15px;
    min-width: 15px;
    max-width: 15px;
    height: 15px;
    min-height: 15px;
    max-height: 15px;
    margin-top: 64px;
    margin-left: 2px;
    box-shadow: 0 0 0 6px var(--motion-paper);
  }

  .portal-progress-node.is-active {
    box-shadow: 0 0 0 6px var(--motion-paper);
  }

  .portal-story-content {
    justify-content: flex-end;
    padding: 78svh 0 112px;
    opacity: 0.42;
    transform: translateY(12px);
  }

  .portal-story-card.is-active .portal-story-content {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) and (max-height: 720px) {
  .portal-section .portal-side-cards .portal-story-card {
    min-height: 122svh;
  }

  .portal-story-content {
    padding-top: 84svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-progress-runner {
    position: absolute;
    top: 0;
    bottom: auto;
    height: 100%;
    max-height: none;
    opacity: 0.72;
  }

  .portal-section .portal-side-cards .portal-story-card {
    min-height: 0;
    opacity: 1;
    transform: none;
  }

  .portal-progress-node {
    position: relative;
    top: auto;
    margin-top: 30px;
    transition: none;
  }

  .portal-story-content {
    justify-content: flex-start;
    padding: 30px 0;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .portal-app-page {
    filter: brightness(0.22);
    transform: translate3d(0, -100%, 0) !important;
    transition: none !important;
  }

  .portal-app-page:first-child {
    transform: translate3d(0, 0, 0) !important;
  }

  .portal-app-page:last-child {
    filter: none;
  }

  .portal-results-line {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
