:root {
  --fx-home-bg: var(--fx-bg-1);
  --fx-home-bg-alt: var(--fx-bg-1);
  --fx-home-surface: var(--fx-surface);
  --fx-home-surface-soft: var(--fx-surface-soft);
  --fx-home-ink: var(--fx-ink);
  --fx-home-muted: var(--fx-muted);
  --fx-home-border: var(--fx-card-border);
  --fx-home-shadow: var(--fx-shadow);
  --fx-home-radius: 24px;
  --fx-home-primary: var(--fx-primary);
  --fx-home-primary-dark: var(--fx-primary-dark);
  --fx-home-primary-soft: var(--fx-accent-soft);
  --fx-home-trust: var(--fx-accent-ink);
  --fx-home-gold: var(--fx-primary);
}

body {
  color: var(--fx-ink);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 88% -8%, rgba(234, 88, 12, 0.05), transparent 38%),
    var(--fx-bg-1);
}

.app-nav {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid #e9e2d7 !important;
  box-shadow: 0 1px 2px rgba(46, 36, 24, 0.05);
  backdrop-filter: blur(8px);
}

.app-nav .navbar-brand {
  color: #211c15 !important;
  letter-spacing: .08em;
}

.app-nav .nav-link {
  color: #6e6357;
  border-radius: 999px;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus-visible,
.app-nav .nav-link.active {
  color: #211c15;
  background: rgba(25, 19, 9, 0.055);
}

.app-nav {
  transition: background .25s var(--fx-ease, cubic-bezier(.22,.61,.36,1)), box-shadow .25s var(--fx-ease, cubic-bezier(.22,.61,.36,1)), backdrop-filter .25s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
}

body:not(.nav-scrolled) .app-nav {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

body.nav-scrolled .app-nav {
  background: rgba(247, 241, 231, .78) !important;
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Scroll-edge effect: a soft gradient mask where content meets the floating chrome,
   instead of a hard 1px divider. */
.app-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(247, 241, 231, .85), rgba(247, 241, 231, 0));
  opacity: 0;
  transition: opacity .25s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
}

body.nav-scrolled .app-nav::after {
  opacity: 1;
}

.app-nav .btn-primary {
  --bs-btn-bg: var(--fx-home-primary);
  --bs-btn-border-color: var(--fx-home-primary);
  --bs-btn-hover-bg: var(--fx-home-primary-dark);
  --bs-btn-hover-border-color: var(--fx-home-primary-dark);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.22);
}

.app-nav .navbar-toggler {
  border-color: #e9e2d7;
}

main.container {
  max-width: 1240px;
}

.landing-page {
  margin-top: .45rem;
  display: grid;
  /* One column that never grows past the screen: without it the column
     takes the widest section's content width and a phone cuts it off. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: 4.5rem;
  color: var(--fx-home-ink);
}

.home-section {
  position: relative;
}

#how-it-works,
#popular-services,
#trust-safety {
  scroll-margin-top: 110px;
}

.landing-page > .home-section:not(.home-hero):not(.home-final-cta) {
  border: 1px solid var(--fx-home-border);
  border-radius: 30px;
  padding: clamp(1.35rem, 3vw, 2.3rem);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(46, 36, 24, 0.04), 0 10px 26px rgba(46, 36, 24, 0.06);
}

.landing-page > .home-section:nth-child(even):not(.home-hero):not(.home-final-cta) {
  background: #ffffff;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 1.4rem;
}

.section-kicker {
  margin: 0 0 .62rem;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #211c15;
}

.section-subtitle {
  margin: .85rem 0 0;
  color: var(--fx-home-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.home-display {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}

.home-hero .hero-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(1.2rem, 3.8vw, 3rem);
  background:
    linear-gradient(130deg, #ffffff, #ffffff),
    radial-gradient(circle at 70% 20%, rgba(234, 88, 12, 0.08), transparent 38%);
  border: 1px solid var(--fx-home-border);
  border-radius: 34px;
  padding: clamp(1.4rem, 4vw, 3.1rem);
  box-shadow: var(--fx-home-shadow);
}

.home-hero .hero-shell::before,
.home-hero .hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  will-change: transform;
}

.hero-shell {
  --fx-px: 0px;
  --fx-py: 0px;
}

/* Blobs fade in once, then rest. Motion after that is user-driven (pointer parallax),
   not a perpetual loop — no slow oscillation for vestibular-sensitive users. */
.home-hero .hero-shell::before {
  right: -6rem;
  top: -6rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.14), rgba(234, 88, 12, 0) 70%);
  transform: translate(var(--fx-px, 0px), var(--fx-py, 0px));
  transition: transform .4s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
  animation: fx-blob-in 1.4s var(--fx-ease, cubic-bezier(.22,.61,.36,1)) both;
}

.home-hero .hero-shell::after {
  left: -5rem;
  bottom: -6rem;
  width: 17rem;
  height: 17rem;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.09), rgba(234, 88, 12, 0) 70%);
  transform: translate(calc(var(--fx-px, 0px) * -1), calc(var(--fx-py, 0px) * -1));
  transition: transform .4s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
  animation: fx-blob-in 1.4s var(--fx-ease, cubic-bezier(.22,.61,.36,1)) .15s both;
}

@keyframes fx-blob-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand-strip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid #e9e2d7;
  background: #ffffff;
  border-radius: 999px;
  padding: .3rem .62rem .3rem .34rem;
  width: fit-content;
  margin-bottom: .8rem;
}

.hero-brand-strip img {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-brand-strip span {
  font-size: .79rem;
  font-weight: 700;
  color: #6e6357;
  letter-spacing: .01em;
}

.hero-kicker {
  margin: 0 0 .65rem;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #ea580c;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 6.4vw, 5rem);
  line-height: .95;
  letter-spacing: -.03em;
  max-width: 13ch;
  color: #211c15;
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 56ch;
  color: #6e6357;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .72rem;
  margin-top: 1.5rem;
}

.btn-home-primary,
.btn-home-secondary {
  border-radius: 999px;
  font-weight: 800;
  padding: .82rem 1.38rem;
  border-width: 1px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn-home-primary {
  background: var(--fx-home-primary);
  border-color: var(--fx-home-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.22);
}

.btn-home-primary:hover,
.btn-home-primary:focus-visible {
  background: var(--fx-home-primary-dark);
  border-color: var(--fx-home-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-home-secondary {
  background: #ffffff;
  border-color: #e9e2d7;
  color: #211c15;
}

.btn-home-secondary:hover,
.btn-home-secondary:focus-visible {
  background: #f4efe7;
  border-color: #d8cfc1;
  color: #211c15;
  transform: translateY(-2px);
}

.hero-login-row {
  margin-top: .82rem;
}

.hero-login-link {
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: .2s ease;
}

.hero-login-link:hover,
.hero-login-link:focus-visible {
  color: #c2410c;
  border-bottom-color: #c2410c;
}

.hero-trust-list {
  margin: 1.28rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .52rem;
}

.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .43rem .72rem;
  border-radius: 999px;
  border: 1px solid #e9e2d7;
  background: #ffffff;
  font-weight: 700;
  color: #211c15;
  font-size: .84rem;
}

.hero-trust-list li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--fx-home-gold);
  box-shadow: 0 0 0 .2rem rgba(234, 88, 12, 0.17);
}

.hero-assurance {
  margin: .9rem 0 0;
  font-size: .92rem;
  color: #6e6357;
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 420px;
}

.hero-image-wrap {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e9e2d7;
  box-shadow: 0 14px 32px rgba(46, 36, 24, 0.10);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-demo-wrap {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e9e2d7;
  box-shadow:
    0 2px 4px rgba(90, 58, 24, .06),
    0 26px 56px -30px rgba(90, 58, 24, .34),
    0 10px 26px -10px rgba(234, 88, 12, .22);
  background:
    radial-gradient(circle at 20% 0%, rgba(234, 88, 12, 0.06), transparent 45%),
    #fffaf3;
  /* Subtle counter-parallax against the blobs reads as depth; it only moves when the
     user does, so it settles the instant they stop. */
  transform: translate(calc(var(--fx-px, 0px) * -.3), calc(var(--fx-py, 0px) * -.3));
  transition: transform .4s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
}

.hero-demo {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.hero-demo-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid #e9e2d7;
  font-weight: 800;
  font-size: .88rem;
  color: #211c15;
  background: #fff;
}

.hero-demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 0 0 3px #fff1e4;
}

.hero-demo-live {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: #0f9d6b;
  letter-spacing: .02em;
}

.hero-demo-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .55rem;
  padding: 1.1rem;
  overflow: hidden;
}

.hero-demo-row {
  display: flex;
}

.hero-demo-row.user {
  justify-content: flex-end;
}

.hero-demo-bubble {
  max-width: 80%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.45;
  animation: hero-demo-pop .28s ease both;
}

.hero-demo-row.assistant .hero-demo-bubble {
  background: #fff;
  border: 1px solid #e9e2d7;
  color: #211c15;
  border-bottom-left-radius: 4px;
}

.hero-demo-row.user .hero-demo-bubble {
  background: #ea580c;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.hero-demo-typing {
  display: flex;
  gap: .28rem;
  align-items: center;
  padding: .75rem .9rem;
}

.hero-demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a389;
  animation: hero-demo-bounce 1.2s infinite ease-in-out;
}

.hero-demo-typing span:nth-child(2) { animation-delay: .2s; }
.hero-demo-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes hero-demo-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-demo-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.hero-media-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: rgba(46, 36, 24, 0.78);
  color: #fdfcfa;
  backdrop-filter: blur(4px);
}

.hero-note-title {
  display: block;
  font-weight: 800;
}

.hero-note-body {
  display: block;
  margin-top: .16rem;
  font-size: .9rem;
  color: #d8cfc1;
}

.hero-chip {
  position: absolute;
  padding: .55rem .75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e9e2d7;
  box-shadow: 0 1px 2px rgba(46, 36, 24, 0.04), 0 10px 26px rgba(46, 36, 24, 0.06);
  font-size: .82rem;
  font-weight: 800;
  color: #211c15;
}

.hero-chip-top {
  top: 1rem;
  left: -1rem;
}

.hero-chip-bottom {
  right: -1rem;
  bottom: 6.8rem;
}

.premium-card {
  border: 1px solid #e9e2d7;
  border-radius: var(--fx-home-radius);
  background: var(--fx-home-surface);
  padding: 1.3rem;
  box-shadow: 0 1px 2px rgba(46, 36, 24, 0.04), 0 10px 26px rgba(46, 36, 24, 0.06);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background .26s ease;
}

.logo-watermark {
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: #d8cfc1;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(46, 36, 24, 0.10);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}

.step-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1e4;
  color: #ea580c;
  font-size: 1.02rem;
}

.step-badge {
  border-radius: 999px;
  padding: .28rem .6rem;
  border: 1px solid #e9e2d7;
  background: #ffffff;
  color: #9a3412;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.23;
  color: #211c15;
}

.card-copy {
  margin: .56rem 0 0;
  color: #6e6357;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 1.15rem;
  align-items: start;
}

.trust-copy {
  padding: clamp(1.3rem, 2vw, 1.9rem);
  border: 1px solid #e9e2d7;
  background: #ffffff;
  border-radius: 24px;
}

.trust-copy .section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.38rem);
}

.trust-points {
  margin: .95rem 0 0;
  padding-left: 1.1rem;
  color: #6e6357;
}

.trust-points li {
  margin: .4rem 0;
}

.home-for-pros {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.for-pros-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-radius: 30px;
  padding: clamp(1.6rem, 3.6vw, 2.8rem);
  background: linear-gradient(135deg, #9a3412 0%, #7c2d12 100%);
  box-shadow: 0 3px 6px rgba(90, 58, 24, .1), 0 26px 56px -30px rgba(90, 58, 24, .5);
}

.for-pros-copy {
  max-width: 46ch;
}

.for-pros-kicker {
  color: #fed7aa !important;
}

.for-pros-title {
  color: #ffffff !important;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.for-pros-subtitle {
  margin: .8rem 0 0;
  color: #ffe3c7;
}

.for-pros-cta {
  flex: 0 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trust-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #fff1e4;
  color: #ea580c;
  margin-bottom: .7rem;
  font-size: .95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}

.service-card:nth-child(1),
.service-card:nth-child(6) {
  grid-column: span 12;
  flex-direction: row;
  align-items: stretch;
  gap: 1.3rem;
}

.service-card:nth-child(1) .service-media,
.service-card:nth-child(6) .service-media {
  flex: 0 0 min(320px, 40%);
  margin: -1.3rem 0 -1.3rem -1.3rem;
  border-radius: var(--fx-home-radius) 0 0 var(--fx-home-radius);
  height: auto;
}

.service-card:nth-child(1) .card-title,
.service-card:nth-child(6) .card-title {
  font-size: 1.4rem;
}

.service-media {
  margin: -1.3rem -1.3rem .95rem;
  height: 160px;
  overflow: hidden;
  border-radius: var(--fx-home-radius) var(--fx-home-radius) 0 0;
  border-bottom: 1px solid var(--fx-home-border);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.premium-card:hover .service-media img {
  transform: scale(1.04);
}

.service-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  border: 1px solid #e9e2d7;
  background: #fff1e4;
  padding: .28rem .7rem;
  font-size: .78rem;
  color: #9a3412;
  font-weight: 700;
}

.service-icon {
  display: inline-flex;
  width: 1rem;
  justify-content: center;
  color: #ea580c;
}

.service-foot {
  margin: auto 0 0;
  padding-top: .82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
  color: #6e6357;
  font-weight: 700;
}

.service-foot span:last-child {
  color: #ea580c;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: .6rem;
}

.testimonials-grid .premium-card {
  --fx-tilt: 0deg;
  transform: rotate(var(--fx-tilt));
  transition: transform .26s var(--fx-ease, cubic-bezier(.22,.61,.36,1)), box-shadow .26s var(--fx-ease, cubic-bezier(.22,.61,.36,1)), border-color .26s var(--fx-ease, cubic-bezier(.22,.61,.36,1));
}

.testimonials-grid .premium-card:nth-child(1) { --fx-tilt: -1.4deg; margin-top: .1rem; }
.testimonials-grid .premium-card:nth-child(2) { --fx-tilt: 1.1deg; margin-top: 1.4rem; }
.testimonials-grid .premium-card:nth-child(3) { --fx-tilt: -0.8deg; margin-top: .5rem; }

.testimonials-grid .premium-card:hover {
  --fx-tilt: 0deg;
  transform: translateY(-5px) rotate(0deg);
}

@media (max-width: 991px) {
  .testimonials-grid .premium-card {
    margin-top: 0 !important;
  }
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: .68rem;
  margin-bottom: .58rem;
}

.testimonial-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(140deg, #ea580c, #fb923c);
}

.testimonial-person {
  margin: 0;
  font-size: .92rem;
  color: #211c15;
  font-weight: 700;
}

.testimonial-chip {
  margin: .12rem 0 0;
  font-size: .77rem;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.testimonial-stars {
  margin: 0;
  color: #f59e0b;
  letter-spacing: .08em;
  font-size: .9rem;
}

.testimonial-quote {
  margin: .68rem 0;
  font-size: 1rem;
  line-height: 1.58;
  color: #211c15;
}

.testimonial-meta {
  margin: 0;
  color: #6e6357;
  font-size: .92rem;
}

.home-final-cta {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  color: #fff1e4;
  padding: clamp(1.65rem, 4vw, 3rem);
  box-shadow: 0 14px 32px rgba(46, 36, 24, 0.10);
  border: 1px solid rgba(254, 215, 170, 0.36);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta .section-kicker {
  color: #fed7aa;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: .98;
  max-width: 16ch;
  color: #ffffff;
}

.final-cta p {
  margin: .9rem 0 0;
  max-width: 58ch;
  color: #ffe9d4;
  font-size: 1.05rem;
}

.final-cta-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.btn-home-light {
  border-radius: 999px;
  font-weight: 800;
  padding: .76rem 1.2rem;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #9a3412;
}

.btn-home-light:hover,
.btn-home-light:focus-visible {
  color: #7c2d12;
  background: #fff1e4;
  border-color: #fff1e4;
  transform: translateY(-2px);
}

.btn-home-ghost {
  border-radius: 999px;
  font-weight: 700;
  padding: .76rem 1.15rem;
  border: 1px solid rgba(254, 215, 170, 0.58);
  color: #fff1e4;
  background: transparent;
}

.btn-home-ghost:hover,
.btn-home-ghost:focus-visible {
  color: #ffffff;
  border-color: #fed7aa;
  background: rgba(254, 215, 170, 0.15);
  transform: translateY(-2px);
}

/* ── Dark theme: the rules above hard-code the light palette ── */
:root[data-theme="dark"] body {
  background: radial-gradient(circle at 88% -8%, rgba(232, 116, 59, .08), transparent 38%), var(--fx-bg-1);
}
:root[data-theme="dark"] .app-nav { background: rgba(31, 30, 29, .86) !important; border-bottom-color: var(--fx-line) !important; }
:root[data-theme="dark"] body.nav-scrolled .app-nav { background: rgba(31, 30, 29, .82) !important; }
:root[data-theme="dark"] .app-nav::after { background: linear-gradient(to bottom, rgba(31, 30, 29, .85), rgba(31, 30, 29, 0)); }
:root[data-theme="dark"] .app-nav .navbar-brand,
:root[data-theme="dark"] .app-nav .nav-link:hover,
:root[data-theme="dark"] .app-nav .nav-link:focus-visible,
:root[data-theme="dark"] .app-nav .nav-link.active { color: var(--fx-ink) !important; }
:root[data-theme="dark"] .app-nav .nav-link { color: var(--fx-muted); }
:root[data-theme="dark"] .app-nav .nav-link:hover,
:root[data-theme="dark"] .app-nav .nav-link:focus-visible,
:root[data-theme="dark"] .app-nav .nav-link.active { background: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .app-nav .navbar-toggler { border-color: var(--fx-card-border); filter: invert(1) grayscale(1); }
:root[data-theme="dark"] .app-nav .navbar-collapse { background: var(--fx-surface); border-color: var(--fx-card-border); }
:root[data-theme="dark"] .landing-page > .home-section:not(.home-hero):not(.home-final-cta),
:root[data-theme="dark"] .landing-page > .home-section:nth-child(even):not(.home-hero):not(.home-final-cta),
:root[data-theme="dark"] .trust-copy,
:root[data-theme="dark"] .premium-card:hover { background: var(--fx-surface); box-shadow: var(--fx-shadow); }
:root[data-theme="dark"] .home-hero .hero-shell {
  background: linear-gradient(130deg, var(--fx-surface), var(--fx-surface)), radial-gradient(circle at 70% 20%, rgba(232, 116, 59, .1), transparent 38%);
}
:root[data-theme="dark"] .section-title,
:root[data-theme="dark"] .hero-title,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .testimonial-person,
:root[data-theme="dark"] .testimonial-quote,
:root[data-theme="dark"] .hero-demo-head { color: var(--fx-ink); }
:root[data-theme="dark"] .hero-subtitle,
:root[data-theme="dark"] .hero-assurance,
:root[data-theme="dark"] .hero-brand-strip span,
:root[data-theme="dark"] .card-copy,
:root[data-theme="dark"] .trust-points,
:root[data-theme="dark"] .service-foot,
:root[data-theme="dark"] .testimonial-meta { color: var(--fx-muted); }
:root[data-theme="dark"] .hero-brand-strip,
:root[data-theme="dark"] .hero-trust-list li,
:root[data-theme="dark"] .hero-chip,
:root[data-theme="dark"] .step-badge,
:root[data-theme="dark"] .btn-home-secondary,
:root[data-theme="dark"] .hero-demo-head,
:root[data-theme="dark"] .hero-demo-row.assistant .hero-demo-bubble { background: var(--fx-surface-soft); border-color: var(--fx-card-border); color: var(--fx-ink); }
:root[data-theme="dark"] .step-badge { color: var(--fx-accent-ink); }
:root[data-theme="dark"] .btn-home-secondary:hover,
:root[data-theme="dark"] .btn-home-secondary:focus-visible { background: #45443f; border-color: #55534d; color: var(--fx-ink); }
:root[data-theme="dark"] .hero-brand-strip img { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
:root[data-theme="dark"] .hero-image-wrap,
:root[data-theme="dark"] .hero-demo-wrap { border-color: var(--fx-card-border); }
:root[data-theme="dark"] .hero-demo-wrap { background: radial-gradient(circle at 20% 0%, rgba(232, 116, 59, .08), transparent 45%), var(--fx-bg-2); }
:root[data-theme="dark"] .hero-demo-head { border-bottom-color: var(--fx-line); }
:root[data-theme="dark"] .hero-demo-dot { background: var(--fx-primary); box-shadow: 0 0 0 3px var(--fx-accent-soft); }
:root[data-theme="dark"] .hero-demo-row.user .hero-demo-bubble { background: var(--fx-primary); }
:root[data-theme="dark"] .hero-demo-typing span { background: var(--fx-muted); }
:root[data-theme="dark"] .premium-card { border-color: var(--fx-card-border); box-shadow: var(--fx-shadow-sm); }
:root[data-theme="dark"] .premium-card:hover { border-color: #4d4b46; }
:root[data-theme="dark"] .step-icon,
:root[data-theme="dark"] .trust-card-icon,
:root[data-theme="dark"] .service-tag { background: var(--fx-accent-soft); color: var(--fx-accent-ink); border-color: transparent; }
:root[data-theme="dark"] .section-kicker,
:root[data-theme="dark"] .hero-kicker,
:root[data-theme="dark"] .hero-login-link,
:root[data-theme="dark"] .service-icon,
:root[data-theme="dark"] .service-foot span:last-child,
:root[data-theme="dark"] .testimonial-chip { color: var(--fx-primary); }
:root[data-theme="dark"] .hero-login-link:hover,
:root[data-theme="dark"] .hero-login-link:focus-visible { color: var(--fx-accent-ink); border-bottom-color: var(--fx-accent-ink); }
:root[data-theme="dark"] .service-media { border-bottom-color: var(--fx-line); }

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .66s ease, transform .66s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .home-hero .hero-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-chip-top {
    left: .75rem;
  }

  .hero-chip-bottom {
    right: .75rem;
  }
}

@media (max-width: 991px) {
  .landing-page {
    gap: 2.7rem;
    padding-bottom: 3rem;
  }

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

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

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

  .service-card,
  .service-card:nth-child(1),
  .service-card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .app-nav .navbar-collapse {
    border: 1px solid #e9e2d7;
    border-radius: 12px;
    margin-top: .6rem;
    padding: .6rem;
    background: #ffffff;
  }

  .home-hero .hero-shell {
    border-radius: 24px;
    padding: 1.15rem;
  }

  .landing-page > .home-section:not(.home-hero):not(.home-final-cta) {
    border-radius: 22px;
    padding: 1rem;
  }

  .hero-title,
  .hero-subtitle {
    max-width: 100%;
  }

  .hero-trust-list {
    gap: .44rem;
  }

  .hero-trust-list li {
    font-size: .78rem;
    padding: .35rem .58rem;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-chip {
    display: none;
  }

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

  .service-card:nth-child(1),
  .service-card:nth-child(6) {
    flex-direction: column;
  }

  .service-card:nth-child(1) .service-media,
  .service-card:nth-child(6) .service-media {
    flex: none;
    margin: -1.3rem -1.3rem .95rem;
    border-radius: var(--fx-home-radius) var(--fx-home-radius) 0 0;
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-hero .hero-shell::before,
  .home-hero .hero-shell::after,
  .hero-demo-wrap {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Mobile performance: no blur behind the floating header on phones. */
@media (max-width: 991px) {
  .app-nav,
  body.nav-scrolled .app-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--fx-bg-1) !important;
  }
}

/* "Built in Lugano" line under the hero copy: local roots are the one claim
   the national platforms can't make. */
.hero-origin {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: .9rem 0 0;
  padding: .35rem .8rem .35rem .65rem;
  border: 1px solid var(--fx-card-border);
  border-radius: 999px;
  background: var(--fx-surface);
  color: var(--fx-muted);
  font-size: .86rem;
  font-weight: 600;
}

.hero-origin i {
  color: var(--fx-primary);
  font-size: .95em;
}

/* ══ Night hero (2026 redesign) ═══════════════════════════════════════════ */
.nx-stage {
  --fx-px: 0px;
  --fx-py: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(1.4rem, 4.5vw, 3.6rem) clamp(1.1rem, 4.5vw, 3.6rem) clamp(1.1rem, 3vw, 2.4rem);
  color: var(--fx-night-ink);
  background:
    radial-gradient(90% 70% at 10% 0%, #1b2544 0%, transparent 60%),
    linear-gradient(165deg, var(--fx-night-2) 0%, var(--fx-night-1) 70%);
  box-shadow: 0 40px 80px -48px rgba(10, 15, 29, .9);
}
.nx-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.3rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}
.nx-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fe0b4;
  box-shadow: 0 0 0 4px rgba(127, 224, 180, .18);
}
.nx-title {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 1.2rem;
  color: var(--fx-night-ink);
}
.nx-title-line { display: block; }
.nx-lead {
  color: var(--fx-night-muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 0 1.8rem;
}
.nx-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.nx-actions .nx-btn-primary { font-size: 1.05rem; padding: .95rem 1.7rem; }
.nx-login { margin: 1.1rem 0 0; font-size: .92rem; }
.nx-login a { color: #ffc08f; text-underline-offset: 3px; }
.nx-login a:hover, .nx-login a:focus-visible { color: #ffd9bd; }

.nx-visual {
  position: relative;
  min-height: 380px;
}
.nx-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translate3d(var(--fx-px), var(--fx-py), 0);
  transition: transform .5s var(--fx-ease);
}
/* Modern house line drawing; reaches left behind the headline */
.nx-house {
  position: relative;
  z-index: -1;
  width: 150%;
  max-width: none;
  height: auto;
  margin-left: -45%;
  opacity: .85;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(232, 116, 59, .4));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 55%);
}
.nx-float-quote {
  top: 4%;
  left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  min-width: 170px;
}
.nx-float-label { color: var(--fx-night-muted); font-size: .75rem; font-weight: 600; }
.nx-float-price { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.nx-float-verified { right: 0; top: 40%; max-width: 230px; animation-delay: -2.3s; }
.nx-float-booked { left: 8%; bottom: 3%; animation-delay: -4.6s; }

.nx-features {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
  padding: 0;
}
.nx-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .8rem;
  row-gap: .15rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 20px;
}
.nx-feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffc08f;
  background: rgba(232, 116, 59, .16);
  font-size: 1.1rem;
}
.nx-feature-title { font-weight: 700; }
.nx-feature-text { color: var(--fx-night-muted); font-size: .88rem; line-height: 1.45; }
.nx-origin { margin-top: 1rem; }

@media (max-width: 991.98px) {
  .nx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-visual { min-height: 330px; max-width: 460px; width: 100%; margin: 0 auto; }
  .nx-house { width: 110%; margin-left: -5%; }
  .nx-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .nx-stage { border-radius: 26px; }
  .nx-actions .nx-btn-primary, .nx-actions .btn-glass-dark { flex: 1 1 100%; justify-content: center; }
  .nx-visual { min-height: 290px; }
  .nx-house { width: 105%; margin-left: 0; }
  .nx-float { font-size: .78rem; padding: .55rem .7rem; }
  .nx-float-quote { min-width: 0; }
  .nx-float-price { font-size: 1.2rem; }
  .nx-float-verified { max-width: 190px; }
  .nx-float-booked { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-visual-inner { transition: none; transform: none; }
}

/* ══ Round 3: 3D mascot, trade icons, scroll story, motion ═════════════════ */
:root { --fx-story-ease: cubic-bezier(.2, .8, .2, 1); }

/* ── Mascot: CSS version is the fallback and the pre-load poster ── */
.fx-bot-grid {
  position: absolute;
  inset: 8% 6%;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.3px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.fx-bot-halo {
  position: absolute;
  width: min(90%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 116, 59, .5) 0%, rgba(232, 116, 59, 0) 68%);
}
.fx-bot {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
}
.fx-bot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s var(--fx-story-ease);
  pointer-events: none;
}
.fx-bot.is-3d .fx-bot-canvas { opacity: 1; }
.fx-bot.is-3d .fx-bot-css { opacity: 0; }

.fx-bot-css {
  position: absolute;
  inset: 0;
  transition: opacity .5s var(--fx-story-ease);
}
.fx-bot-css > span { position: absolute; display: block; }
.fx-bot-body {
  left: 26%; right: 26%; top: 40%; height: 38%;
  border-radius: 22% / 26%;
  background: radial-gradient(120% 90% at 30% 20%, #ffffff 0%, #f3ede4 55%, #d9d0c4 100%);
  box-shadow: inset -8px -10px 18px rgba(120, 90, 60, .22), inset 6px 6px 14px rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .06), 10px -4px 22px rgba(159, 184, 255, .25);
}
.fx-bot-roof {
  left: 20%; right: 20%; top: 17%; height: 28%;
  clip-path: polygon(50% 0, 100% 86%, 96% 100%, 4% 100%, 0 86%);
  border-radius: 12px;
  background: linear-gradient(170deg, #ffb07c 0%, #e8743b 55%, #b9501f 100%);
}
.fx-bot-chimney {
  left: 62%; top: 17%; width: 7%; height: 14%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #d9d0c4);
  z-index: -1;
}
.fx-bot-screen {
  position: absolute;
  inset: 14% 12% 18%;
  border-radius: 22%;
  background: radial-gradient(90% 90% at 50% 40%, #6a2d12 0%, #22140e 75%);
  box-shadow: 0 0 28px rgba(232, 116, 59, .65), inset 0 0 18px rgba(232, 116, 59, .6);
}
.fx-bot-eye {
  position: absolute;
  top: 30%;
  width: 11%;
  aspect-ratio: 1 / 1.25;
  border-radius: 50%;
  background: #fff3e6;
  box-shadow: 0 0 10px rgba(255, 200, 160, .9);
  transform-origin: center;
}
.fx-bot-eye:first-child { left: 30%; }
.fx-bot-eye:nth-child(2) { right: 30%; }
.fx-bot-smile {
  position: absolute;
  left: 40%; right: 40%; top: 58%; height: 14%;
  border: 3px solid #fff3e6;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}
.fx-bot-foot {
  top: 77%; width: 12%; height: 7%;
  border-radius: 999px;
  background: linear-gradient(#4b505c, #2a2d35);
}
.fx-bot-foot-l { left: 34%; }
.fx-bot-foot-r { right: 34%; }
.fx-bot-shadow {
  left: 28%; right: 28%; top: 84%; height: 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .fx-bot-eye { animation: fx-blink 5.5s infinite 2s; }
}
@keyframes fx-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(.1); }
}

/* ── Trade icons: soft 3D badges ── */
.service-tag .fx-tool {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -12px 0 -12px -10px;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff 0%, #fbeee2 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 14px rgba(154, 52, 18, .18), 0 1px 2px rgba(154, 52, 18, .2);
  transition: transform .45s var(--fx-story-ease);
}
.service-tag .fx-tool svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(80, 40, 10, .25)); }
.service-tag { padding-left: .6rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .premium-card:hover .fx-tool { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
}

/* ── Scroll story ── */
.fx-story-track {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 3.4rem;
}
.fx-story-rail {
  position: absolute;
  left: 1.2rem;
  top: .6rem;
  bottom: .6rem;
  width: 3px;
  border-radius: 3px;
  background: var(--fx-line, #e9e2d7);
  overflow: hidden;
}
.fx-story-fill {
  display: block;
  height: 100%;
  background: linear-gradient(#ffb07c, #e8743b);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.fx-story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 8vh, 4.5rem); }
.fx-story-step { position: relative; }
.fx-story-num {
  position: absolute;
  left: -3.4rem;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff9a60, #c2410c);
  box-shadow: 0 6px 16px rgba(194, 65, 12, .35);
}
.fx-story-title {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -.02em;
  margin: .2rem 0 .4rem;
}
.fx-story-text { color: var(--fx-muted, #5f564c); font-size: 1.05rem; line-height: 1.55; margin: 0; max-width: 36rem; }
.fx-story-track.is-armed .fx-story-step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--fx-story-ease), transform .7s var(--fx-story-ease);
}
.fx-story-track.is-armed .fx-story-step.is-in { opacity: 1; transform: none; }
.fx-story-track.is-armed .fx-story-num { transform: scale(.6); transition: transform .5s var(--fx-story-ease) .1s; }
.fx-story-track.is-armed .is-in .fx-story-num { transform: scale(1); }

/* ── Motion polish ── */
@media (prefers-reduced-motion: no-preference) {
  .nx-title-line { animation: fx-settle .7s var(--fx-story-ease) both; }
  .nx-title-line + .nx-title-line { animation-delay: .12s; }
  .landing-page .btn { transition: transform .15s var(--fx-story-ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
  .landing-page .btn:active { transform: scale(.96); transition-duration: .12s; }
  .premium-card { transition: transform .45s var(--fx-story-ease), box-shadow .45s var(--fx-story-ease), border-color .26s ease, background .26s ease; }
}
@keyframes fx-settle {
  from { transform: translateY(.3em); filter: blur(5px); }
  to { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-card:hover { transform: none; }
  .fx-bot-canvas { display: none; }
  .fx-bot .fx-bot-css { opacity: 1 !important; }
}


/* ══ One night canvas (2026): the whole home page is a single dark scene,
   not a hero card on a cream page. Sections sit on the same background and
   use glass tiles; light tokens are remapped so every component follows. ══ */
:root body.fx-landing-night {
  --fx-bg-1: #0a0f1d;
  --fx-bg-2: #0e1528;
  --fx-surface: rgba(255, 255, 255, .05);
  --fx-surface-soft: rgba(255, 255, 255, .07);
  --fx-ink: #f5f1ea;
  --fx-muted: #b7bfd0;
  --fx-faint: #a9b2c6;
  --fx-card-border: rgba(255, 255, 255, .12);
  --fx-line: rgba(255, 255, 255, .1);
  --fx-accent-soft: rgba(232, 116, 59, .16);
  --fx-accent-ink: #ffb48a;
  --fx-home-border: rgba(255, 255, 255, .12);
  --fx-home-bg: transparent;
  --fx-home-bg-alt: transparent;
  --fx-home-surface: rgba(255, 255, 255, .05);
  --fx-home-surface-soft: rgba(255, 255, 255, .07);
  --fx-home-ink: #f5f1ea;
  --fx-home-muted: #b7bfd0;
  --fx-home-primary-soft: rgba(232, 116, 59, .16);
  --fx-home-trust: #ffb48a;
  --bs-body-color: #f5f1ea;
  --bs-body-bg: #0a0f1d;
  --bs-border-color: rgba(255, 255, 255, .12);
  color: #f5f1ea;
  background:
    radial-gradient(1100px 700px at 78% 180px, rgba(232, 116, 59, .22), transparent 65%),
    radial-gradient(900px 700px at 0% 0%, rgba(59, 90, 170, .22), transparent 65%),
    radial-gradient(900px 800px at 100% 1400px, rgba(70, 104, 196, .14), transparent 65%),
    radial-gradient(800px 700px at 0% 2400px, rgba(232, 116, 59, .10), transparent 65%),
    linear-gradient(180deg, #0a0f1d 0%, #0e1528 50%, #0a0f1d 100%);
}
/* The hero is no longer a card: the page itself is the stage. */
:root body.fx-landing-night .nx-stage {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  padding-left: 0;
  padding-right: 0;
}
:root body.fx-landing-night .landing-page > .home-section:not(.home-hero):not(.home-final-cta),
:root body.fx-landing-night .landing-page > .home-section:nth-child(even):not(.home-hero):not(.home-final-cta) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
:root body.fx-landing-night .section-title,
:root body.fx-landing-night h1, :root body.fx-landing-night h2,
:root body.fx-landing-night h3, :root body.fx-landing-night h4 { color: #f5f1ea; }
:root body.fx-landing-night .section-kicker { color: #ffab7a; }
:root body.fx-landing-night .text-muted { color: #b7bfd0 !important; }

/* Header floats on the night sky. */
:root body.fx-landing-night:not(.nav-scrolled) .app-nav {
  background: transparent !important;
  border-bottom-color: transparent !important;
}
:root body.fx-landing-night .app-nav .navbar-brand img { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
:root body.fx-landing-night .app-nav .nav-link { color: #c3cadb; }
:root body.fx-landing-night .app-nav .nav-link:hover,
:root body.fx-landing-night .app-nav .nav-link:focus-visible,
:root body.fx-landing-night .app-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); }
:root body.fx-landing-night .app-nav .fx-lang-select { color-scheme: dark; color: #f5f1ea; background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
:root body.fx-landing-night .app-nav .fx-lang-select option { color: #191309; }
:root body.fx-landing-night .app-nav .navbar-toggler { border-color: rgba(255, 255, 255, .25); filter: invert(1); }
:root body.fx-landing-night.nav-scrolled .app-nav {
  background: rgba(10, 15, 29, .72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}
:root body.fx-landing-night .app-nav::after { display: none; }
@media (max-width: 991px) {
  :root body.fx-landing-night .app-nav,
  :root body.fx-landing-night.nav-scrolled .app-nav { background: #0a0f1d !important; }
}

/* Footer continues the night scene. */
:root body.fx-landing-night .app-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #b7bfd0;
}
:root body.fx-landing-night .app-footer a { color: #d7dcea; }
:root body.fx-landing-night .app-footer a:hover { color: #fff; }

/* Glass tiles on the night canvas. */
:root body.fx-landing-night .premium-card,
:root body.fx-landing-night .trust-copy {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 48px -30px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
:root body.fx-landing-night .premium-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border-color: rgba(255, 180, 138, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 26px 50px -26px rgba(232, 116, 59, .45);
}
:root body.fx-landing-night .card-copy { color: #b7bfd0; }
@media (prefers-reduced-transparency: reduce) {
  :root body.fx-landing-night .premium-card,
  :root body.fx-landing-night .trust-copy { -webkit-backdrop-filter: none; backdrop-filter: none; background: #141c31; }
}

/* For pros: a glass strip on the night canvas, not a second orange block. */
:root body.fx-landing-night .for-pros-band {
  background:
    radial-gradient(420px 220px at 100% 50%, rgba(232, 116, 59, .22), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
:root body.fx-landing-night .for-pros-kicker { color: #ffab7a; }
:root body.fx-landing-night .for-pros-subtitle { color: #c3cadb; }

/* Closing call: open text on an orange glow, no box. */
:root body.fx-landing-night .final-cta {
  position: relative;
  text-align: center;
  background: radial-gradient(60% 90% at 50% 60%, rgba(232, 116, 59, .30), transparent 70%);
  border: 0;
  box-shadow: none;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
:root body.fx-landing-night .final-cta > * { margin-left: auto; margin-right: auto; }
:root body.fx-landing-night .final-cta .section-kicker { color: #ffab7a !important; }
:root body.fx-landing-night .final-cta p { color: #c3cadb; max-width: 36rem; }
:root body.fx-landing-night .final-cta-actions { justify-content: center; }
:root body.fx-landing-night .final-cta .btn-home-light {
  background: linear-gradient(135deg, #f59a62, #e8743b);
  color: #1a1208;
  border: 0;
  box-shadow: 0 14px 34px -12px rgba(232, 116, 59, .8);
}
@media (min-width: 992px) {
  :root body.fx-landing-night .app-nav .navbar-collapse { background: transparent; border: 0; box-shadow: none; }
}
@media (max-width: 991.98px) {
  :root body.fx-landing-night .app-nav .navbar-collapse { background: #121a2e; border-color: rgba(255, 255, 255, .12); }
}

/* The closing glow must fade out softly, never stop at the box edge. */
:root body.fx-landing-night .final-cta {
  overflow: visible;
  background: none;
  isolation: isolate;
}
:root body.fx-landing-night .final-cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(1100px, 100vw);
  height: 180%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(232, 116, 59, .30), rgba(232, 116, 59, .12) 55%, transparent 100%);
  pointer-events: none;
}
:root body.fx-landing-night { overflow-x: clip; }

/* Scrolled on the night landing page: the header stays see-through glass, so
   the sky's own colours carry on behind it instead of a solid blue bar. */
:root body.fx-landing-night.nav-scrolled .app-nav {
  background: rgba(10, 15, 29, .3) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.5) !important;
  backdrop-filter: blur(16px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}
@media (max-width: 991px) {
  :root body.fx-landing-night .app-nav { background: transparent !important; }
  :root body.fx-landing-night.nav-scrolled .app-nav { background: rgba(10, 15, 29, .38) !important; }
  :root body.fx-landing-night .app-nav .navbar-collapse { background: rgba(18, 26, 46, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  :root body.fx-landing-night.nav-scrolled .app-nav { background: #0a0f1d !important; backdrop-filter: none !important; }
}

.nx-hero-copy { position: relative; z-index: 2; }
.nx-visual { z-index: 1; }

/* Phone showcase: three points beside an iPhone showing the AI chat */
.nx-showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.nx-showcase-points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.nx-showcase-point {
  display: block; width: 100%; text-align: left; color: inherit; background: none;
  padding: 1.1rem 1.3rem; border-radius: 20px; border: 1px solid transparent; opacity: .6;
  transition: opacity .3s, border-color .3s, background .3s;
}
.nx-showcase-point:hover { opacity: .85; }
.nx-showcase-point.is-active { opacity: 1; border-color: rgba(232,116,59,.45); background: rgba(22,30,52,.55); }
.nx-showcase-h { display: block; margin-bottom: .3rem; font-size: 1.2rem; font-weight: 700; }
.nx-showcase-p { display: block; color: var(--fx-night-muted); }
.nx-showcase-visual { display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle, rgba(232,116,59,.28), transparent 65%); }
.nx-phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a3f4d, #14171f);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 30px 70px rgba(0,0,0,.55), 0 0 60px rgba(232,116,59,.25);
}
.nx-phone-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 39px; background: #0f1628; color: #f5f1ea; font-size: .76rem; }
.nx-phone-status { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.2rem .2rem; font-weight: 700; }
.nx-phone-island { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.nx-phone-icons { display: flex; gap: .2rem; font-size: .65rem; }
.nx-phone-head { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.nx-phone-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(232,116,59,.25); color: #ffc08f; }
.nx-scene { display: none; flex: 1; flex-direction: column; min-height: 0; }
.nx-scene.is-active { display: flex; animation: nx-scene-in .4s ease both; }
.nx-scene-center { align-items: center; justify-content: center; padding: 0 1rem 2rem; text-align: center; }
.nx-scene .nx-in { opacity: 0; }
.nx-scene.is-active .nx-in { animation: nx-pop .45s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }
@keyframes nx-scene-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.nx-scene.is-active .nx-typing { animation: nx-pop .3s var(--d) both, nx-gone .2s 1.8s forwards; }
@keyframes nx-gone { to { opacity: 0; height: 0; padding: 0; margin: -0.45rem 0 0; } }
.nx-typing { display: flex; gap: 3px; }
.nx-typing span { width: 5px; height: 5px; border-radius: 50%; background: #b7bfd0; animation: nx-dot 1s infinite; }
.nx-typing span:nth-child(2) { animation-delay: .15s; }
.nx-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes nx-dot { 50% { transform: translateY(-3px); opacity: .5; } }
.nx-avatars { display: flex; margin-bottom: .9rem; }
.nx-avatars span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; border: 2px solid #0f1628; background: linear-gradient(135deg, #f08a4b, #8a4a2c); font-size: .62rem; font-weight: 700; }
.nx-avatars span.is-more { background: #2a3350; }
.nx-scene-title { margin: 0 0 .9rem; font-size: .95rem; font-weight: 700; }
.nx-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; text-align: left; }
.nx-checklist li { display: flex; gap: .35rem; }
.nx-checklist i, .nx-quote.is-picked i { color: #7fe0b4; }
.nx-quote { display: flex; align-items: center; justify-content: space-between; padding: .6rem .7rem; border-radius: 14px; background: rgba(255,255,255,.07); }
.nx-quote small { display: block; color: var(--fx-night-muted); }
.nx-quote b { color: #ffc08f; }
.nx-quote.is-picked { border: 1px solid rgba(127,224,180,.45); background: rgba(92,196,154,.12); }
.nx-paid { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: .4rem; color: var(--fx-night-muted); }
@media (prefers-reduced-motion: reduce) {
  .nx-scene.is-active, .nx-scene.is-active .nx-in { animation: none; opacity: 1; }
  .nx-scene.is-active .nx-typing { display: none; }
}
.nx-phone-chat { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: .7rem; }
.nx-msg { margin: 0; max-width: 85%; padding: .45rem .65rem; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.08); line-height: 1.35; }
.nx-msg.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #f08a4b, #e8743b); color: #fff; }
.nx-msg-card { display: flex; flex-direction: column; gap: .2rem; border: 1px solid rgba(232,116,59,.35); }
.nx-msg-label { color: var(--fx-night-muted); font-weight: 600; }
.nx-check { display: flex; align-items: center; gap: .3rem; }
.nx-check i { color: #7fe0b4; }
.nx-phone-input { display: flex; align-items: center; justify-content: space-between; margin: 0 .7rem 1rem; padding: .5rem .75rem; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--fx-night-muted); }
.nx-phone-input i { font-size: 1.1rem; color: #e8743b; }
@media (max-width: 991.98px) {
  .nx-showcase-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .nx-phone { width: 240px; }
}

/* Phone screens in the app's own light look (cream, peach card, orange orb) */
.nx-phone-screen { background: #f8f0e7; color: #1f1a17; }
.nx-phone-island { background: #000; }
.nx-app-bar { display: flex; align-items: center; justify-content: space-between; padding: .35rem .9rem .5rem; font-size: .9rem; }
.nx-app-logo { font-family: Georgia, serif; font-weight: 700; letter-spacing: .04em; color: #1c2440; }
.nx-app-me { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8743b; color: #fff; font-size: .62rem; font-weight: 700; }
.nx-phone-screen .nx-scene { padding: 0 .7rem .8rem; gap: .55rem; }
.nx-app-hero { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem .6rem; border-radius: 20px; text-align: center; background: linear-gradient(160deg, #fde3d2, #fbd2b8 60%, #f5dfd8); box-shadow: 0 10px 24px rgba(232,116,59,.18); }
.nx-app-orb { width: 46px; height: 46px; margin-bottom: .3rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe1cc, #f39a63 45%, #e2652e); box-shadow: 0 6px 16px rgba(232,116,59,.45); animation: nx-orb 3s ease-in-out infinite; }
@keyframes nx-orb { 50% { transform: scale(1.06); } }
.nx-app-hero strong { font-size: .95rem; }
.nx-app-hero small { color: #6b5f57; }
.nx-app-actions { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; }
.nx-app-actions > i, .nx-app-actions b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.nx-app-actions b { width: 36px; height: 36px; background: #1f1a17; color: #fff; }
.nx-app-box { display: flex; align-items: flex-end; justify-content: space-between; min-height: 58px; padding: .55rem .6rem; border: 1px solid #f2b48f; border-radius: 14px; background: #fffdf9; }
.nx-typed { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; border-right: 1.5px solid #e8743b; align-self: flex-start; }
.nx-scene.is-active .nx-typed { animation: nx-type 1.8s steps(28) 1s forwards, nx-caret .7s step-end infinite; }
@keyframes nx-type { to { max-width: 100%; } }
@keyframes nx-caret { 50% { border-color: transparent; } }
.nx-app-send { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #f6b28c; color: #fff; }
.nx-scene.is-active .nx-app-send { animation: nx-send .3s 3.1s forwards; }
@keyframes nx-send { to { background: #e8743b; transform: scale(1.12); } }
.nx-app-chips { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.nx-app-chips span { display: flex; gap: .25rem; padding: .3rem .55rem; border: 1px solid #eadfd5; border-radius: 999px; background: #fff; font-size: .64rem; }
.nx-app-chat { display: flex; flex-direction: column; gap: .45rem; }
.nx-amsg { margin: 0; max-width: 88%; padding: .5rem .65rem; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.05); line-height: 1.35; }
.nx-amsg.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #e8743b; color: #fff; }
.nx-amsg ol { margin: .3rem 0 0; padding-left: 1.1rem; }
.nx-app-cta { align-self: flex-start; display: flex; gap: .3rem; padding: .4rem .7rem; border-radius: 999px; background: #1f1a17; color: #fff; font-weight: 600; }
.nx-phone-screen .nx-scene-center { justify-content: flex-start; padding-top: 1rem; }
.nx-phone-screen .nx-avatars span { border-color: #f8f0e7; color: #fff; }
.nx-phone-screen .nx-avatars span.is-more { background: #3a3f4d; }
.nx-phone-screen .nx-checklist { margin-bottom: .5rem; }
.nx-phone-screen .nx-checklist i { color: #1f9d6a; }
.nx-phone-screen .nx-quote { width: 100%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.nx-phone-screen .nx-quote small, .nx-phone-screen .nx-paid { color: #6b5f57; }
.nx-phone-screen .nx-quote b { color: #d0612a; }
.nx-phone-screen .nx-quote.is-picked { border: 1px solid #7fd1ad; background: #eefaf4; }
.nx-done { display: grid; place-items: center; width: 54px; height: 54px; margin-top: 1.5rem; border-radius: 50%; background: #1f9d6a; color: #fff; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(31,157,106,.35); }
.nx-phone-screen .nx-typing span { background: #b8aca2; }
@media (prefers-reduced-motion: reduce) {
  .nx-typed { max-width: 100%; border: 0; }
  .nx-scene.is-active .nx-typed, .nx-app-orb { animation: none; }
}

/* How it works: numbered steps on an orange rail beside the phone */
.nx-showcase-points { position: relative; }
.nx-showcase-point { position: relative; padding-left: 3.6rem; }
.nx-step-num { position: absolute; left: .45rem; top: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb489, #e8743b 60%, #c9561f); color: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 0 0 4px #0d1426; }
/* Steps read like the old "three steps" list: big display headings */
.nx-showcase-h { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.nx-showcase-points { gap: 1.2rem; }

/* Screens cross-fade: the old one stays filled while the new one comes in */
.nx-scenes { position: relative; flex: 1; min-height: 0; }
.nx-phone-screen .nx-scenes > .nx-scene { position: absolute; inset: 0; display: flex; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.nx-phone-screen .nx-scenes > .nx-scene.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; animation: none; z-index: 1; }
.nx-scene.is-leaving .nx-in { opacity: 1; }
.nx-scene.is-leaving .nx-typing { display: none; }
.nx-scene.is-leaving .nx-typed { max-width: 100%; border-color: transparent; }
.nx-scene.is-leaving .nx-app-send { background: #e8743b; }

/* Orange progress line that fills down towards the next step */
.nx-showcase-points > li:not(.nx-rail-fill) { position: relative; z-index: 2; }
.nx-typing { align-self: flex-start; }
/* Rail like the old story line: 3px track, glowing orange fill that runs down */

/* Home plan: tilted phone with the maintenance list and floating photos */
.nx-plan-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.nx-plan-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb489, #e8743b 60%, #c9561f); color: #fff; font-size: 1.4rem; box-shadow: 0 0 24px rgba(232,116,59,.5); }
.nx-plan-actions { margin-top: 1.4rem; }
.nx-plan-soon { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--fx-night-muted); font-size: .9rem; }
.nx-plan-visual { position: relative; min-height: 600px; }
.nx-plan-phone { position: absolute; left: 50%; top: 50%; width: 260px; transform: translate(-50%, -50%) rotate(-14deg) skewX(4deg); z-index: 2; }
.nx-plan-photo { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.nx-plan-photo-a { width: 34%; aspect-ratio: 3 / 4; left: 0; top: 14%; z-index: 1; }
.nx-plan-photo-b { width: 28%; aspect-ratio: 3 / 4; right: 2%; top: 0; z-index: 1; }
.nx-plan-photo-c { width: 34%; aspect-ratio: 4 / 5; right: 6%; bottom: 4%; z-index: 3; }
.nx-plan-head { padding: .4rem .9rem 0; text-align: center; }
.nx-plan-head strong { display: block; font-size: .9rem; }
.nx-plan-tabs { display: flex; justify-content: space-between; margin-top: .5rem; padding-bottom: .35rem; border-bottom: 1px solid #eadfd5; font-size: .66rem; color: #6b5f57; }
.nx-plan-tabs b { color: #d0612a; border-bottom: 2px solid #e8743b; padding-bottom: .3rem; margin-bottom: -.4rem; }
.nx-plan-list { display: flex; flex-direction: column; gap: .45rem; padding: .7rem; }
.nx-plan-season { margin: 0 0 .1rem; font-weight: 800; font-size: .9rem; }
.nx-plan-task { position: relative; display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.nx-plan-task > i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: #fde7d9; color: #d0612a; }
.nx-plan-task small { display: block; color: #6b5f57; font-size: .64rem; }
.nx-plan-task.is-top { flex-wrap: wrap; padding-top: 0; overflow: hidden; }
.nx-plan-flag { display: flex; justify-content: center; gap: .3rem; width: calc(100% + 1.3rem); margin: 0 -.65rem .35rem; padding: .25rem; background: #e7f6ef; color: #1f9d6a; font-size: .62rem; font-weight: 700; }
@media (max-width: 991.98px) {
  .nx-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-plan-visual { min-height: 520px; }
}
@media (max-width: 575.98px) {
  .nx-plan-phone { width: 210px; }
  .nx-plan-visual { min-height: 440px; }
}
.nx-plan-photo { height: auto; }
.nx-plan-phone { transform: translate(-50%, -50%) rotate(-12deg); }
.nx-plan-photo-a { width: 30%; left: 0; top: 10%; }
.nx-plan-photo-b { width: 26%; right: 0; top: 2%; }
.nx-plan-photo-c { width: 32%; right: 4%; top: auto; bottom: 2%; }
.nx-plan-phone { z-index: 4; }
.nx-plan-phone { transform: translate(-50%, -50%) perspective(1400px) rotateX(22deg) rotateY(-12deg) rotateZ(26deg); box-shadow: -30px 40px 70px rgba(0,0,0,.55), 0 0 60px rgba(232,116,59,.2); }

/* How it works phone: FixIt's own night-blue app look, invented pros */
.nx-showcase .nx-phone-screen { background: radial-gradient(120% 60% at 50% 0%, #1b2a4d, #0d1426 70%); color: #f5f1ea; }
.nx-app-brand { height: 16px; filter: invert(1) hue-rotate(180deg) saturate(1.3); }
.nx-showcase .nx-app-bar { border-bottom: 1px solid rgba(255,255,255,.07); color: #c9cfdd; }
.nx-showcase .nx-phone-screen .nx-scene { padding: .7rem .7rem .9rem; gap: .5rem; }
.fx-chat { display: flex; flex-direction: column; gap: .5rem; }
.fx-msg { margin: 0; max-width: 90%; padding: .55rem .7rem; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); line-height: 1.4; }
.fx-msg.is-me { align-self: flex-end; display: flex; flex-direction: column; gap: .35rem; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, #f08a4b, #d9622a); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(232,116,59,.35); }
.fx-photo { display: grid; place-items: center; width: 100%; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #8aa4c4, #4d6283); color: rgba(255,255,255,.8); font-size: 1.2rem; }
.fx-msg ol { margin: .35rem 0 0; padding-left: 1.1rem; color: #dfe4ee; }
.fx-ai-tag { display: flex; align-items: center; gap: .25rem; margin-bottom: .25rem; color: #ffb07c; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fx-msg.nx-typing { align-self: flex-start; }
.nx-showcase .nx-typing span { background: #8d96ab; }
.nx-showcase .nx-typed { border-right-color: #fff; }
.fx-cta { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .85rem; border-radius: 999px; background: #e8743b; color: #fff; font-weight: 700; box-shadow: 0 0 18px rgba(232,116,59,.5); }
.fx-cta.is-wide { align-self: stretch; margin-top: .3rem; }
.nx-scene.is-active .fx-press { animation: nx-pop .45s cubic-bezier(.2,.8,.2,1) var(--d) both, fx-press .5s calc(var(--d) + 1.6s) both; }
@keyframes fx-press { 40% { transform: scale(.94); filter: brightness(1.2); } }
.fx-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .7rem .75rem; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,116,59,.35); }
.fx-card strong { font-size: .9rem; }
.fx-card small, .fx-arrive small, .fx-offer small { color: #9aa3b8; }
.fx-card.is-row { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
.fx-card.is-row span { display: flex; flex-direction: column; }
.fx-pill { position: absolute; right: .6rem; top: .6rem; display: flex; gap: .2rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(31,157,106,.18); color: #6fe0ae; font-size: .6rem; font-weight: 700; }
.fx-label { display: flex; justify-content: space-between; margin: .3rem 0 0; color: #9aa3b8; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fx-label span { color: #ffb07c; text-transform: none; letter-spacing: 0; }
.fx-arrive, .fx-offer { position: relative; display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.fx-arrive > span:nth-child(2), .fx-offer > span:not(.fx-av):not(.fx-badge) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx-arrive b, .fx-offer b, .fx-card b { color: #ffb07c; }
.fx-av { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 55% 45%); color: #fff; font-size: .6rem; font-weight: 800; }
.fx-offer.is-best { margin-top: .5rem; border-color: rgba(232,116,59,.6); background: rgba(232,116,59,.1); box-shadow: 0 0 20px rgba(232,116,59,.2); }
.fx-badge { position: absolute; left: .6rem; top: -.55rem; display: flex; gap: .2rem; padding: .05rem .45rem; border-radius: 999px; background: #e8743b; color: #fff; font-size: .58rem; font-weight: 800; }
.fx-done { display: grid; place-items: center; width: 54px; height: 54px; margin: 1rem auto 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fe8b8, #1f9d6a 65%); color: #fff; font-size: 1.6rem; box-shadow: 0 0 26px rgba(31,157,106,.55); }
.fx-title { margin: 0; text-align: center; font-weight: 800; font-size: .95rem; }
.fx-methods { display: flex; justify-content: center; gap: .6rem; color: #9aa3b8; font-size: .66rem; font-weight: 700; }
.fx-stars { display: flex; justify-content: center; align-items: center; gap: .15rem; margin-top: .3rem; color: #c9cfdd; }
.fx-stars i { color: #ffb84d; }
.nx-showcase .nx-scene-center { align-items: stretch; }
.nx-scene.is-leaving .nx-typed { border-color: transparent; }
.nx-showcase-point.is-done { opacity: .75; }

/* Phone back on the site's light cream look (same as the logged-in app) */
.nx-showcase .nx-phone-screen { background: #f8f0e7; color: #1f1a17; }
.nx-showcase .nx-app-bar { border-bottom-color: #eadfd5; color: #1c2440; }
.nx-app-brand { filter: none; }
.fx-msg { background: #fff; border-color: #f0e6dc; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.fx-msg ol { color: #3a322d; }
.fx-ai-tag { color: #d0612a; }
.nx-showcase .nx-typing span { background: #b8aca2; }
.fx-cta { box-shadow: 0 6px 16px rgba(232,116,59,.35); }
.fx-card, .fx-arrive, .fx-offer { background: #fff; border-color: #eadfd5; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.fx-card { border-color: #f2b48f; }
.fx-card small, .fx-arrive small, .fx-offer small, .fx-label, .fx-methods { color: #6b5f57; }
.fx-arrive b, .fx-offer b, .fx-card b, .fx-label span { color: #d0612a; }
.fx-pill { background: #e7f6ef; color: #1f9d6a; }
.fx-offer.is-best { border-color: #f2b48f; background: #fff6ef; box-shadow: 0 6px 16px rgba(232,116,59,.15); }
.fx-done { box-shadow: 0 8px 20px rgba(31,157,106,.35); }
.fx-stars { color: #3a322d; }
.fx-photo { display: block; width: 100%; height: 64px; object-fit: cover; border-radius: 10px; }

/* Steps follow the phone: a step only lights up once the phone gets there */
.nx-showcase-point { opacity: .28; }
.nx-showcase-point .nx-showcase-p { opacity: 0; transition: opacity .5s; }
.nx-showcase-point.is-active, .nx-showcase-point.is-active .nx-showcase-p { opacity: 1; }
.nx-showcase-point.is-done { opacity: .7; }
.nx-showcase-point.is-done .nx-showcase-p { opacity: .8; }
.nx-showcase-point:hover { opacity: .85; }

/* Orange line: brighter, wider, with a glowing head that flows down */

/* Home plan phone: the real Home maintenance page (task cards, due dates, Book a pro) */
.nx-plan-phone .nx-app-bar { border-bottom: 1px solid #eadfd5; color: #1c2440; }
.nx-plan-head { padding: .6rem .8rem 0; text-align: left; }
.nx-plan-head small { display: block; color: #d0612a; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nx-plan-head strong { display: block; font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: 1rem; line-height: 1.15; }
.nx-plan-list { gap: .5rem; padding: .6rem .7rem; }
.nx-plan-card { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .65rem; border: 1px solid #eadfd5; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.nx-plan-card.is-overdue { border-color: #d9534f; box-shadow: 0 0 0 1px #d9534f; }
.nx-plan-cat { display: inline-flex; align-self: flex-start; align-items: center; gap: .3rem; padding: .05rem .4rem; border-radius: 6px; background: #fde7d9; color: #1f1a17; font-size: .58rem; }
.nx-plan-cat i { color: #d0612a; }
.nx-plan-card strong { font-size: .78rem; }
.nx-plan-card small { display: flex; gap: .25rem; color: #6b5f57; font-size: .6rem; }
.nx-plan-card em { font-style: normal; font-size: .6rem; font-weight: 700; color: #c0392b; }
.nx-plan-card em.is-ok { color: #1f9d6a; font-weight: 400; }
.nx-plan-btns { display: flex; gap: .35rem; margin-top: .25rem; }
.nx-plan-btns b { flex: 1; padding: .25rem; border-radius: 8px; background: #e8743b; color: #fff; text-align: center; font-size: .62rem; }
.nx-plan-btns i { display: grid; place-items: center; width: 24px; border: 1px solid #cfc4ba; border-radius: 8px; color: #6b5f57; }

/* Smooth rail: the line scales from the top and the dot slides, both on the GPU */

/* Activity stream (example until launch): cards slide up through a column */
.nx-stream-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.nx-stream-accent { color: #ff9a5c; }
.nx-stream-lead { color: var(--fx-night-muted); font-size: 1.1rem; line-height: 1.6; max-width: 44ch; }
.nx-stream-example {
  display: inline-block; margin-left: .5rem; padding: .15rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25); color: #c3cadb; font-size: .7rem; letter-spacing: .08em;
}
.nx-stream-list { position: relative; list-style: none; margin: 0; padding: 0; height: 440px; }
.nx-stream-card {
  position: absolute; left: 50%; top: 0; width: min(440px, 100%);
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 18px; color: #f5f1ea;
  background: radial-gradient(120% 90% at 100% 0%, rgba(234, 88, 12, .28), transparent 60%), linear-gradient(160deg, #1c2a4d, #121a2e);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 40px -18px rgba(0, 0, 0, .8);
  transform: translate(-50%, 0); opacity: 0;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .7s cubic-bezier(.22, .61, .36, 1);
}
.nx-stream-card[data-pos="0"] { transform: translate(-50%, 10px) scale(.9); opacity: .35; }
.nx-stream-card[data-pos="1"] { transform: translate(-50%, 100px) scale(.95); opacity: .7; }
.nx-stream-card[data-pos="2"] { transform: translate(-50%, 190px) scale(1); opacity: 1; z-index: 2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(255, 154, 92, .25), 0 26px 50px -18px rgba(232, 116, 59, .45); }
.nx-stream-card[data-pos="3"] { transform: translate(-50%, 280px) scale(.95); opacity: .7; }
.nx-stream-card[data-pos="4"] { transform: translate(-50%, 370px) scale(.9); opacity: .35; }
.nx-stream-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(234, 88, 12, .2); color: #ffb48a; }
.nx-stream-ic.is-blue { background: rgba(91, 134, 214, .2); color: #7aa7f5; }
.nx-stream-ic.is-green { background: rgba(92, 196, 154, .18); color: #5cc49a; }
.nx-stream-text { min-width: 0; }
.nx-stream-text b { display: block; font-size: .98rem; }
.nx-stream-text small { color: #b7bfd0; }
.nx-stream-time { margin-left: auto; color: #9aa4b9; font-size: .78rem; white-space: nowrap; }
@media (max-width: 991px) {
  .nx-stream-grid { grid-template-columns: 1fr; }
  .nx-stream-list { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-stream-card { transition: none; }
}

/* "Example" badge on the demo phones: the names, ratings and reviews in them
   are made up until real ones exist. */
.nx-showcase-visual, .nx-plan-visual { position: relative; }
.nx-example-tag {
  position: absolute; top: 0; left: 50%; z-index: 5; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(10, 15, 29, .82); border: 1px solid rgba(255, 255, 255, .25);
  color: #c3cadb; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(10px); white-space: nowrap;
}
.nx-plan-visual .nx-example-tag { top: 2%; }
/* Showcase steps: one thin bar runs past all three steps, with a dot for each
   step sitting exactly on it (centred by phone_showcase.js). The bar fills
   while the screens play and the dots turn orange as it reaches them. */

.nx-showcase-points > li.nx-rail-track,
.nx-showcase-points > li.nx-rail-fill {
  position: absolute;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  pointer-events: none;
}

.nx-showcase-points > li.nx-rail-track {
  z-index: 1;
  background: rgba(255, 255, 255, .12);
}

.nx-showcase-points > li.nx-rail-fill {
  display: block !important;
  z-index: 2;
  height: auto;
  transform: none !important;
  clip-path: inset(0 0 100% 0);
  background: linear-gradient(180deg, #e8743b, #ffb07c);
}

.nx-showcase-point { padding-left: 3rem; }

/* Dots: no numbers; they sit on top of the bar so it never shows through */
.nx-showcase-point .nx-step-num,
.nx-showcase-point:not(.is-active) .nx-step-num,
.nx-showcase-point.is-active .nx-step-num {
  z-index: 3;
  left: 1.2rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  font-size: 0;
  color: transparent;
  background: #0d1426;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  transition: background-color .3s, border-color .3s, transform .3s cubic-bezier(.22, .61, .36, 1);
}

.nx-showcase-point.is-done .nx-step-num,
.nx-showcase-point.is-active .nx-step-num {
  background: #e8743b;
  border-color: #ffb07c;
}

.nx-showcase-point.is-active .nx-step-num {
  transform: scale(1.25);
  box-shadow: 0 0 16px rgba(232, 116, 59, .75);
}

.nx-showcase-point:hover .nx-step-num { border-color: #ffb07c; }

@media (prefers-reduced-motion: reduce) {
  .nx-showcase-points > li.nx-rail-fill { transition: none !important; }
}

/* Keep the dots solid: fade only the text of inactive steps, never the dot,
   so the bar can't show through. */
.nx-showcase-point,
.nx-showcase-point:hover { opacity: 1; }
.nx-showcase-point:not(.is-active) .nx-showcase-h,
.nx-showcase-point:not(.is-active) .nx-showcase-p { opacity: .6; transition: opacity .3s; }
.nx-showcase-point:not(.is-active):hover .nx-showcase-h,
.nx-showcase-point:not(.is-active):hover .nx-showcase-p { opacity: .85; }

/* Performance: sections below the first screen are only drawn when they come
   near the screen; the size hint keeps the scrollbar steady. */
.home-section:not(.home-hero):not(.nx-showcase) {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* ══ Accessibility: readable button text (WCAG AA) ═══════════════════════
   Light: deeper orange behind white text. Dark: bright orange with navy text,
   the same pairing the app uses for its orange buttons at night. */
.btn-home-primary,
.btn-home-primary:hover,
.btn-home-primary:focus-visible { background: #c2410c; border-color: #c2410c; color: #fff; }
.btn-home-primary:hover,
.btn-home-primary:focus-visible { background: #9a3412; border-color: #9a3412; }
:root[data-theme="dark"] .btn-home-primary { background: #e8743b; border-color: #e8743b; color: #0a0f1d; }
:root[data-theme="dark"] .btn-home-primary:hover,
:root[data-theme="dark"] .btn-home-primary:focus-visible { background: #f59a62; border-color: #f59a62; color: #0a0f1d; }
.nx-plan-btns b { background: #c2410c; }
