/* Simply Mortgages homepage redesign.
   Scoped to the homepage replacement sections so preserved areas keep their current design. */

:root {
  --home-ink: #211624;
  --home-muted: #6b5e6c;
  --home-plum: #65265f;
  --home-plum-dark: #3d1739;
  --home-plum-bright: #d89be6;
  --home-paper: #faf7f4;
  --home-mist: #f6f1ec;
  --home-line: rgba(61, 23, 57, 0.12);
  --home-grid: rgba(61, 23, 57, 0.026);
  --home-shadow: rgba(61, 23, 57, 0.11);
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --home-ambient-bg:
    radial-gradient(ellipse at 84% 12%, rgba(101, 38, 95, 0.075), transparent 34rem),
    radial-gradient(ellipse at 12% 38%, rgba(101, 38, 95, 0.05), transparent 30rem),
    radial-gradient(ellipse at 70% 78%, rgba(158, 94, 150, 0.06), transparent 34rem),
    linear-gradient(180deg, #faf7f4 0%, #fffdfb 34rem, #f7f2ee 100%);
}

/* Fixed grain overlay: kills digital flatness, sits under the header */
body:has(#scrolly-hero)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: 0.032;
  pointer-events: none;
  position: fixed;
  z-index: 30;
}

#mobile-menu-overlay {
  pointer-events: none;
  visibility: hidden;
}

#mobile-menu-overlay.translate-x-0,
#mobile-menu-overlay[style*="translateX(0)"] {
  pointer-events: auto;
  visibility: visible;
}

#cookie-banner {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--home-line) !important;
  box-shadow: 0 -18px 50px rgba(61, 23, 57, 0.14) !important;
}

#cookie-banner #btn-accept-cookies {
  background: #65265f !important;
  border-radius: 999px !important;
  color: #fff !important;
}

#cookie-banner #btn-reject-cookies {
  border-radius: 999px !important;
}

#cookie-banner a {
  color: #65265f !important;
}

@media (max-width: 767px) {
  #cookie-banner {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    border: 1px solid var(--home-line) !important;
    border-radius: 1.25rem !important;
    padding: 0.7rem !important;
    max-height: 26vh;
    overflow-y: auto;
  }

  #cookie-banner > div {
    display: grid !important;
    gap: 0.45rem !important;
    padding: 0 !important;
  }

  #cookie-banner h3 {
    display: none !important;
  }

  #cookie-banner p {
    font-size: 0.68rem !important;
    line-height: 1.24 !important;
  }

  #cookie-banner .flex-shrink-0 {
    width: 100% !important;
  }

  #cookie-banner .flex-shrink-0.flex,
  #cookie-banner .flex-shrink-0 .flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem !important;
  }

  #cookie-banner button {
    min-height: 2.35rem;
    padding: 0.45rem 0.55rem !important;
    font-size: 0.7rem !important;
    line-height: 1.15 !important;
  }
}

body:has(#scrolly-hero) {
  background: #faf7f4;
}

body:has(#scrolly-hero)::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(101, 38, 95, 0.09), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(158, 94, 150, 0.07), transparent 40%),
    var(--home-ambient-bg);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  transform: translate3d(calc(var(--sm-sx, 0) * 1px), calc(var(--sm-sy, 0) * 1px), 0);
  will-change: transform;
  z-index: 0;
}

#scrolly-hero,
#scrolly-hero ~ main,
#scrolly-hero ~ footer {
  position: relative;
  z-index: 1;
}

body:has(#scrolly-hero) > header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 60 !important;
}

#scrolly-hero :where(h1, h2, h3, h4, h5, h6),
.home-home :where(h1, h2, h3, h4, h5, h6, .home-title, .heading-premium),
#how-it-works > div > .text-center > h2,
.site-ready-cta :where(h1, h2, h3, h4, h5, h6, .heading-premium) {
  font-family: "Fraunces", Georgia, serif !important;
  font-optical-sizing: auto;
  letter-spacing: 0 !important;
}

#scrolly-hero :where(h1, h2),
.home-home :where(h1, h2, .home-title, .heading-premium),
#how-it-works > div > .text-center > h2,
.site-ready-cta :where(h1, h2, .heading-premium) {
  font-weight: 750 !important;
}

#scrolly-hero :where(h3, h4, h5, h6),
.home-home :where(h3, h4, h5, h6),
.site-ready-cta :where(h3, h4, h5, h6) {
  font-weight: 650 !important;
}

#scrolly-hero .hero-h1 span {
  color: #d89be6 !important;
  text-shadow: 0 3px 22px rgba(20, 24, 39, 0.55);
}

.home-home {
  background: linear-gradient(180deg, rgba(250, 247, 244, 0.72), rgba(255, 253, 251, 0.62) 38%, rgba(247, 242, 238, 0.74));
  color: var(--home-ink);
  overflow: hidden;
}

.home-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.home-eyebrow {
  color: var(--home-plum);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.home-eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.home-title {
  color: var(--home-ink);
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.home-title span {
  color: var(--home-plum);
}

.home-copy {
  color: var(--home-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  max-width: 64ch;
  text-wrap: pretty;
}

.home-soft-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 80px var(--home-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.home-button {
  align-items: center;
  background: var(--home-plum);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.35rem;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease, box-shadow 260ms ease;
}

.home-button:hover {
  background: var(--home-plum-dark);
  box-shadow: 0 18px 42px rgba(101, 38, 95, 0.22);
  transform: translateY(-2px);
}

.home-button:active {
  transform: translateY(1px) scale(0.99);
}

.home-button.secondary {
  background: #fff;
  border: 1px solid var(--home-line);
  color: var(--home-ink);
}

.home-trust {
  margin-top: -1px;
  padding: 2.2rem 0 3.2rem;
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.70), rgba(255, 253, 251, 0.84));
  border-bottom: 1px solid rgba(61, 23, 57, 0.08);
}

.home-trust-grid {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid var(--home-line);
  background: var(--home-line);
}

.home-trust-stat {
  background: #fff;
  padding: 1.35rem 1.5rem;
}

.home-trust-stat strong {
  display: block;
  color: var(--home-ink);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-trust-stat span {
  color: var(--home-muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.home-logo-strip {
  align-items: center;
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: 1.75rem;
  overflow: auto;
  padding: 0.2rem 0 0.6rem;
  scrollbar-width: none;
}

.home-logo-strip::-webkit-scrollbar {
  display: none;
}

.home-logo-strip img {
  background: #fff;
  border: 1px solid rgba(61, 23, 57, 0.08);
  border-radius: 1rem;
  filter: grayscale(1) opacity(0.72);
  flex: 0 0 auto;
  height: 4.2rem;
  object-fit: contain;
  padding: 0.85rem 1.15rem;
  transition: filter 300ms ease, transform 300ms var(--home-ease), box-shadow 300ms ease;
  width: 9.5rem;
}

.home-logo-strip img:hover {
  box-shadow: 0 14px 34px var(--home-shadow);
  filter: none;
  transform: translateY(-3px);
}

.home-journey-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.home-sticky-intro {
  position: sticky;
  top: 7rem;
}

.home-path-stack {
  display: grid;
  gap: 1rem;
}

.home-path-card {
  border-radius: 1.7rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: auto 1fr auto;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  text-decoration: none;
  transition: transform 320ms var(--home-ease), box-shadow 320ms ease;
}

.home-path-card:hover {
  box-shadow: 0 26px 60px var(--home-shadow);
  transform: translateX(-0.35rem) translateY(-2px);
}

.home-path-card:hover .home-arrow {
  background: var(--home-plum);
  border-color: var(--home-plum);
  color: #fff;
  opacity: 1;
  transform: translateX(3px);
}

.home-path-card.featured:hover .home-arrow {
  background: #fff;
  border-color: #fff;
  color: var(--home-plum);
}

.home-path-card.featured {
  background:
    linear-gradient(135deg, rgba(101, 38, 95, 0.92), rgba(56, 23, 53, 0.96)),
    url("/assets/images/content/Purple_Door_3_75-card.webp") center / cover;
  color: #fff;
  min-height: 16rem;
}

.home-path-card:not(.featured) {
  background: #fff;
  border: 1px solid var(--home-line);
}

.home-path-number {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.58;
  text-transform: uppercase;
}

.home-path-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-path-card p {
  color: inherit;
  line-height: 1.65;
  margin-top: 0.65rem;
  max-width: 43ch;
  opacity: 0.74;
}

.home-arrow {
  align-items: center;
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  height: 2.8rem;
  justify-content: center;
  opacity: 0.38;
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease, opacity 260ms ease, transform 320ms var(--home-ease);
  width: 2.8rem;
}

.home-bento {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.home-bento-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 1.7rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 13rem;
  overflow: hidden;
  padding: 1.45rem;
  position: relative;
  transition: transform 320ms var(--home-ease), box-shadow 320ms ease;
}

.home-bento-card:hover {
  box-shadow: 0 26px 64px var(--home-shadow);
  transform: translateY(-4px);
}

.home-bento-card img {
  transition: transform 700ms var(--home-ease);
}

.home-bento-card:hover img {
  transform: scale(1.035);
}

/* Subtle radius variation without vertical offsets */
@media (min-width: 901px) {
  .home-bento-card:nth-child(1) {
    border-radius: 2.2rem 1.2rem 1.7rem 1.7rem;
  }

  .home-bento-card:nth-child(2) {
    border-radius: 1.2rem 2.2rem 1.7rem 1.7rem;
  }

  .home-bento-card.wide {
    border-radius: 1.7rem 1.7rem 2.4rem 2.4rem;
  }
}

.home-bento-card.wide {
  grid-column: 1 / -1;
  min-height: 15rem;
  padding: 0;
}

.home-bento-card.dark {
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 155, 230, 0.18), transparent 14rem),
    #241428;
  color: #fff;
}

.home-bento-card h3 {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.home-bento-card p {
  color: inherit;
  line-height: 1.6;
  margin-top: 0.65rem;
  opacity: 0.68;
}

.home-bento-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.home-bento-overlay {
  background: linear-gradient(90deg, rgba(43, 15, 40, 0.90), rgba(101, 38, 95, 0.38) 60%, rgba(101, 38, 95, 0.12));
  color: #fff;
  inset: 0;
  padding: 1.6rem;
  position: absolute;
}

.home-specialist-intro {
  display: grid;
  justify-items: center;
  margin-inline: auto;
  max-width: 880px;
  text-align: center;
}

.home-specialist-intro .home-copy {
  margin-inline: auto;
  max-width: 680px;
}

#how-it-works {
  background:
    radial-gradient(ellipse at 84% 10%, rgba(101, 38, 95, 0.06), transparent 30rem),
    linear-gradient(180deg, #f7f2ee, #fffdfb 55%, #faf7f4) !important;
}

/* Retire rust/orange accents inside How It Works (structure untouched) */
#how-it-works .text-brand-rust {
  color: #65265f !important;
}

#how-it-works .bg-brand-rust\/5 {
  background-color: rgba(101, 38, 95, 0.05) !important;
}

#how-it-works .bg-brand-rust\/20 {
  background-color: rgba(101, 38, 95, 0.2) !important;
}

#how-it-works .border-brand-rust\/20 {
  border-color: rgba(101, 38, 95, 0.2) !important;
}

#how-it-works > div > .text-center > span {
  color: var(--home-plum) !important;
  font-family: "Fraunces", Georgia, serif !important;
  font-size: 1.02rem !important;
  font-style: italic !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: lowercase !important;
}

#how-it-works > div > .text-center > h2 {
  color: var(--home-ink) !important;
  font-size: clamp(2.8rem, 6.6vw, 5.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.92 !important;
  margin-inline: auto;
  max-width: 10ch;
  text-wrap: balance;
}

.home-proof {
  background: #1e1120;
  color: #fff;
}

.home-proof::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(216, 155, 230, 0.20), transparent 26rem),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  position: absolute;
}

.home-proof .home-wrap {
  position: relative;
  z-index: 1;
}

.home-proof-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.home-proof-aside {
  display: grid;
  gap: 1rem;
}

.home-proof-lines {
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.home-proof-lines div {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(14.5rem, 0.42fr) minmax(0, 1fr);
  padding: 1.05rem 0;
}

.home-proof-lines div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.home-proof-lines strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.home-proof-lines span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.home-elfsight-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 320px;
  overflow: visible;
  padding: 0;
}

.home-elfsight-label {
  color: var(--home-plum);
  display: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.home-tools {
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.62), rgba(247, 242, 238, 0.78));
}

.home-tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 1fr 1fr;
}

.home-tool-card {
  background: #fffdfb;
  border: 1px solid var(--home-line);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  transition: transform 300ms var(--home-ease), box-shadow 300ms ease;
}

.home-tool-card:hover {
  box-shadow: 0 22px 54px var(--home-shadow);
  transform: translateY(-3px);
}

.home-tool-card .home-button {
  margin-top: auto;
}

.home-tool-card p {
  margin-bottom: 1.35rem;
}

.home-tool-card.main {
  background:
    radial-gradient(circle at 80% 0%, rgba(216, 155, 230, 0.28), transparent 16rem),
    linear-gradient(150deg, var(--home-plum), var(--home-plum-dark));
  border-color: rgba(216, 155, 230, 0.25);
  color: #fff;
  grid-row: span 2;
}

.home-tool-card h3 {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.home-tool-card p {
  color: inherit;
  line-height: 1.6;
  margin-top: 0.55rem;
  opacity: 0.72;
}

.home-cta {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(235, 245, 251, 0.68));
}

.home-cta-panel {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20, 24, 39, 0.08);
  border-radius: 2rem;
  box-shadow: 0 28px 90px rgba(47, 55, 80, 0.12);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-promise-list {
  border-top: 1px solid var(--home-line);
  display: grid;
  gap: 0;
  margin-top: 1.65rem;
  max-width: 38rem;
}

.home-promise-list span {
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  display: block;
  font-size: 0.96rem;
  line-height: 1.55;
  padding: 0.82rem 0;
}

.home-promise-list strong {
  color: var(--home-ink);
  font-weight: 850;
}

@media (max-width: 900px) {
  .home-trust-grid,
  .home-journey-grid,
  .home-proof-grid,
  .home-tool-grid,
  .home-cta-panel {
    grid-template-columns: 1fr !important;
  }

  .home-sticky-intro {
    position: static;
  }

  .home-bento {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    grid-template-columns: 1fr auto;
  }

  .home-path-number {
    grid-column: 1 / -1;
  }

  .home-proof-lines div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-section {
    padding: 4rem 0;
  }

  #scrolly-hero .hero-h1 {
    font-size: clamp(2.25rem, 11.5vw, 2.95rem) !important;
    line-height: 0.96 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: calc(100vw - 2rem);
    text-wrap: balance;
  }

  .home-title {
    font-size: clamp(2.15rem, 10.8vw, 3.05rem);
    letter-spacing: -0.055em;
  }

  #how-it-works > div > .text-center > h2 {
    font-size: clamp(2.5rem, 13vw, 4.05rem) !important;
  }

  .home-trust-grid {
    border-radius: 1.2rem;
  }

  .home-path-card,
  .home-bento-card,
  .home-elfsight-panel,
  .home-tool-card,
  .home-cta-panel {
    border-radius: 1.2rem;
  }

  .home-button {
    width: 100%;
  }
}

#scrolly-hero :where(h1, h2),
.home-home :where(h1, h2, .home-title, .heading-premium),
#how-it-works > div > .text-center > h2,
.site-ready-cta :where(h1, h2, .heading-premium) {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

#scrolly-hero :where(h3, h4, h5, h6),
.home-home :where(h3, h4, h5, h6),
.site-ready-cta :where(h3, h4, h5, h6) {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

@media (min-width: 1024px) {
  .site-mega-nav {
    gap: clamp(1.1rem, 1.55vw, 1.75rem) !important;
    align-self: stretch;
  }

  .site-mega-link,
  .site-mega-trigger {
    align-items: center;
    color: #584a58;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 650;
    gap: 0.35rem;
    height: 100%;
    letter-spacing: 0;
    position: relative;
    text-decoration: none;
    transition: color 180ms ease;
    white-space: nowrap;
  }

  .site-mega-item::before {
    content: "";
    display: none;
    height: 1.4rem;
    left: 0;
    position: fixed;
    right: 0;
    top: 80px;
    z-index: 58;
  }

  .site-mega-item:hover::before,
  .site-mega-item:focus-within::before {
    display: block;
  }

  .site-mega-link::after,
  .site-mega-trigger::after {
    background: #65265f;
    bottom: 1.25rem;
    content: "";
    height: 1px;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    transform: scaleX(0.7);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-mega-link:hover,
  .site-mega-item:hover > .site-mega-trigger,
  .site-mega-trigger:focus-visible {
    color: #4a1c46;
  }

  .site-mega-link:hover::after,
  .site-mega-item:hover > .site-mega-trigger::after,
  .site-mega-trigger:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .site-mega-trigger svg {
    height: 0.9rem;
    transition: transform 180ms ease;
    width: 0.9rem;
  }

  .site-mega-item:hover > .site-mega-trigger svg {
    transform: rotate(180deg);
  }

  .site-mega-panel {
    background: #fff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 26px 46px -38px rgba(15, 23, 42, 0.56);
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 85px;
    transform: translateY(-8px);
    transition: opacity 210ms ease, transform 210ms ease;
    visibility: hidden;
    content-visibility: hidden;
    contain: layout paint style;
    contain-intrinsic-size: 0 460px;
    z-index: 57;
  }

  .site-mega-item:hover .site-mega-panel,
  .site-mega-item:focus-within .site-mega-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    content-visibility: visible;
  }

  .site-mega-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.36fr);
    margin: 0 auto;
    max-width: 1060px;
    min-height: 430px;
    padding: 0 2rem;
  }

  .site-mega-rail {
    display: none;
  }

  .site-mega-eyebrow,
  .site-mega-section-title {
    color: #4a1c46;
    display: block;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0;
    margin-bottom: 0.82rem;
  }

  .site-mega-rail-list {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    display: grid;
    gap: 0.08rem;
    padding-top: 0.8rem;
  }

  .site-mega-rail-list a {
    color: #111827;
    display: block;
    font-size: 0.88rem;
    font-weight: 520;
    line-height: 1.3;
    padding: 0.42rem 0;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
  }

  .site-mega-rail-list a:hover {
    color: #65265f;
    transform: translateX(2px);
  }

  .site-mega-main {
    padding: 2.15rem 2.45rem 2.35rem 0;
  }

  .site-mega-link-grid {
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    display: grid;
    gap: 1.15rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 1rem;
  }

  .site-mega-card {
    align-items: start;
    border-radius: 0.55rem;
    color: #17202d;
    display: grid;
    gap: 0.72rem;
    grid-template-columns: 1.35rem 1fr;
    min-height: 3.9rem;
    padding: 0.2rem 0.15rem;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
  }

  .site-mega-card::before {
    background: transparent;
    border: 2px solid rgba(101, 38, 95, 0.42);
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    height: 0.72rem;
    margin-top: 0.28rem;
    width: 0.72rem;
  }

  .site-mega-card:hover::before {
    border-color: #65265f;
    box-shadow: 0 0 0 3px rgba(101, 38, 95, 0.10);
  }

  .site-mega-card strong {
    color: #4a1c46;
    display: block;
    font-size: 0.9rem;
    font-weight: 720;
    line-height: 1.22;
    transition: color 180ms ease;
  }

  .site-mega-card span {
    color: #1f2937;
    display: block;
    font-size: 0.78rem;
    line-height: 1.34;
    margin-top: 0.3rem;
  }

  .site-mega-card:hover {
    color: #65265f;
    transform: translateX(2px);
  }

  .site-mega-card:hover strong {
    color: #65265f;
  }

  .site-mega-feature {
    background:
      linear-gradient(160deg, rgba(101, 38, 95, 0.06), rgba(247, 240, 236, 0.95)),
      #f7f0ec;
    border-left: 1px solid rgba(101, 38, 95, 0.12);
    padding: 2.15rem 1.55rem;
  }

  .site-mega-feature-list {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: grid;
    gap: 0.95rem;
    padding-top: 1rem;
  }

  .site-mega-feature-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(101, 38, 95, 0.10);
    border-radius: 0.72rem;
    box-shadow: 0 10px 28px rgba(61, 23, 57, 0.06);
    color: #17202d;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 4.6rem 1fr;
    overflow: hidden;
    padding: 0.72rem;
    text-decoration: none;
    transition: transform 220ms var(--home-ease), background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

  .site-mega-feature-card:hover {
    background: #fff;
    border-color: rgba(101, 38, 95, 0.22);
    box-shadow: 0 16px 36px rgba(61, 23, 57, 0.12);
    transform: translateY(-2px);
  }

  .site-mega-feature-card img {
    aspect-ratio: 1.2;
    border-radius: 0.52rem;
    height: 3.75rem;
    object-fit: cover;
    transition: transform 320ms var(--home-ease);
    width: 4.6rem;
  }

  .site-mega-feature-card:hover img {
    transform: scale(1.04);
  }

  .site-mega-feature-card strong {
    color: #4a1c46;
    display: block;
    font-size: 0.86rem;
    line-height: 1.22;
  }

  .site-mega-feature-card span {
    color: #1f2937;
    display: block;
    font-size: 0.74rem;
    line-height: 1.28;
    margin-top: 0.26rem;
  }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .site-mega-nav {
    gap: 0.72rem !important;
  }

  .site-mega-link,
  .site-mega-trigger {
    font-size: 0.78rem;
  }

  header a[href="https://portal.myac.re/"] {
    display: none !important;
  }

  header a[href="/get-in-touch"] {
    font-size: 0.8rem !important;
    padding: 0.65rem 1rem !important;
  }
}

/* ============================================================
   Motion system: staggered reveals, spotlight cards, focus rings
   ============================================================ */

.js-reveal .stagger-children > * {
  transition: opacity 700ms var(--home-ease, cubic-bezier(0.22, 1, 0.36, 1)), transform 700ms var(--home-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.js-reveal .stagger-children:not(.revealed) > * {
  opacity: 0;
  transform: translateY(26px);
}

.js-reveal .stagger-children > :nth-child(2) { transition-delay: 75ms; }
.js-reveal .stagger-children > :nth-child(3) { transition-delay: 150ms; }
.js-reveal .stagger-children > :nth-child(4) { transition-delay: 225ms; }
.js-reveal .stagger-children > :nth-child(5) { transition-delay: 300ms; }
.js-reveal .stagger-children > :nth-child(6) { transition-delay: 375ms; }
.js-reveal .stagger-children > :nth-child(n+7) { transition-delay: 450ms; }

.sm-spotlight {
  position: relative;
}

.sm-spotlight::after {
  background: radial-gradient(15rem circle at var(--sm-mx, 50%) var(--sm-my, 50%), rgba(101, 38, 95, 0.13), transparent 62%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 320ms ease;
}

.sm-spotlight:hover::after {
  opacity: 1;
}

.home-tool-card.main.sm-spotlight::after,
.home-path-card.featured.sm-spotlight::after,
.home-bento-card.dark.sm-spotlight::after {
  background: radial-gradient(15rem circle at var(--sm-mx, 50%) var(--sm-my, 50%), rgba(216, 155, 230, 0.20), transparent 62%);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #65265f;
  outline-offset: 3px;
}

.home-proof a:focus-visible,
.home-proof button:focus-visible {
  outline-color: #d89be6;
}

@media (prefers-reduced-motion: reduce) {
  body:has(#scrolly-hero)::before {
    transform: none !important;
  }

  .js-reveal .stagger-children > *,
  .js-reveal .reveal-on-scroll,
  .js-reveal .reveal-slide-right,
  .js-reveal .reveal-scale-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .home-logo-strip img,
  .home-path-card,
  .home-bento-card,
  .home-tool-card,
  .home-button {
    transition: none !important;
  }
}

/* PPC landing conversion module */
.ppc-lead-section {
  background:
    radial-gradient(ellipse at 86% 12%, rgba(101, 38, 95, 0.075), transparent 30rem),
    radial-gradient(ellipse at 12% 80%, rgba(158, 94, 150, 0.06), transparent 30rem),
    linear-gradient(180deg, rgba(255, 253, 251, 0.82), rgba(247, 242, 238, 0.86)) !important;
  border-bottom: 1px solid var(--site-line, rgba(61, 23, 57, 0.11));
  border-top: 1px solid var(--site-line, rgba(61, 23, 57, 0.11));
  color: var(--site-ink, #211624);
  padding: clamp(4.5rem, 7vw, 6.5rem) 1.5rem !important;
}

.ppc-lead-shell {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  margin: 0 auto;
  max-width: 73.75rem;
}

.ppc-lead-copy {
  color: var(--site-ink, #211624);
}

.ppc-lead-kicker {
  align-items: center;
  color: var(--site-plum, #65265f);
  display: inline-flex;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 600;
  gap: 0.6rem;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  text-transform: lowercase;
}

.ppc-lead-kicker::before {
  background: currentColor;
  content: "";
  height: 1px;
  opacity: 0.65;
  width: 1.9rem;
}

.ppc-lead-copy h2 {
  color: var(--site-ink, #211624);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 1.25rem;
  max-width: 11ch;
  text-wrap: balance;
}

.ppc-lead-copy p {
  color: var(--site-muted, #6b5e6c);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  margin: 0 0 1.35rem;
  max-width: 42rem;
  text-wrap: pretty;
}

.ppc-lead-copy ul {
  display: grid;
  gap: 0.72rem;
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
}

.ppc-lead-copy li {
  color: var(--site-ink, #211624);
  font-weight: 700;
  line-height: 1.5;
  padding-left: 1.55rem;
  position: relative;
}

.ppc-lead-copy li::before {
  background: var(--site-plum, #65265f);
  border-radius: 999px;
  content: "";
  height: 0.44rem;
  left: 0;
  position: absolute;
  top: 0.52rem;
  width: 0.44rem;
}

.ppc-lead-warning {
  border-left: 3px solid rgba(101, 38, 95, 0.32);
  color: var(--site-muted, #6b5e6c) !important;
  font-size: 0.86rem !important;
  padding-left: 1rem;
}

.ppc-disclosure-box {
  background: rgba(255, 253, 251, 0.78);
  border: 1px solid rgba(101, 38, 95, 0.14);
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.ppc-disclosure-box strong {
  color: var(--site-plum-dark, #3d1739);
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.ppc-disclosure-box p {
  color: var(--site-muted, #6b5e6c);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

.ppc-lead-form {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.35rem;
  box-shadow: 0 28px 80px var(--site-shadow, rgba(61, 23, 57, 0.11)), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.85rem);
}

.ppc-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.ppc-lead-form label {
  color: var(--site-ink, #211624);
  display: grid;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.42rem;
}

.ppc-lead-form :is(input, select, textarea) {
  background: rgba(255, 253, 251, 0.9);
  border: 1px solid var(--site-line, rgba(61, 23, 57, 0.11));
  border-radius: 0.95rem;
  color: var(--site-ink, #211624);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  min-height: 3rem;
  padding: 0.82rem 0.95rem;
  width: 100%;
}

.ppc-lead-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.ppc-lead-form :is(input, select, textarea):focus {
  border-color: rgba(101, 38, 95, 0.55);
  box-shadow: 0 0 0 3px rgba(101, 38, 95, 0.14);
  outline: 0;
}

.ppc-lead-form button {
  background: var(--site-plum, #65265f);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  min-height: 3.35rem;
  padding: 0.9rem 1.25rem;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease, box-shadow 260ms ease;
}

.ppc-lead-form button:hover {
  background: var(--site-plum-dark, #3d1739);
  box-shadow: 0 18px 42px rgba(101, 38, 95, 0.22);
  transform: translateY(-2px);
}

.ppc-lead-form button:active {
  transform: translateY(1px) scale(0.99);
}

.ppc-form-small {
  color: var(--site-muted, #6b5e6c);
  font-size: 0.86rem;
  font-weight: 650;
  margin: -0.25rem 0 0;
  text-align: center;
}

.ppc-form-small a {
  color: var(--site-plum, #65265f);
  font-weight: 800;
}

@media (max-width: 900px) {
  .ppc-lead-shell,
  .ppc-form-grid {
    grid-template-columns: 1fr;
  }
}

