/* ---- page-specific: home ---- */
.hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(212, 98, 26, .13), transparent 29%),
    radial-gradient(circle at 63% 70%, rgba(123, 63, 160, .13), transparent 34%),
    linear-gradient(180deg, #F2F5FF 0%, #FBF9F6 100%);
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 78px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
  min-height: 560px;
}
.hero__inner > * {
  min-width: 0;
}
.hero h1 { font-size: 56px; line-height: 62px; margin-bottom: 20px; }
.hero p { max-width: 460px; margin-bottom: 26px; }
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card-stack {
  position: relative;
  min-height: clamp(410px, 43vw, 580px);
  isolation: isolate;
}

.hero-card-stack::before {
  content: "STONEVIEW";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  color: rgba(255, 255, 255, .72);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(80px, 11vw, 160px);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-img-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: clamp(18px, 2vw, 30px);
  background: var(--sv-white);
  box-shadow:
    0 34px 70px -42px rgba(42, 10, 62, .52),
    0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: transform .28s ease, box-shadow .28s ease;
}

.hero-img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(123, 63, 160, .06);
  pointer-events: none;
}

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

.hero-img-card--center {
  left: 51%;
  top: 50%;
  z-index: 3;
  width: min(64%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.hero-card-stack:hover .hero-img-card--center {
  transform: translate(-50%, -52%);
  box-shadow:
    0 42px 82px -44px rgba(42, 10, 62, .6),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

.hero-img-card--center img {
  object-position: center;
}

.hero-img-card--left {
  left: -3%;
  top: 39%;
  z-index: 2;
  width: min(42%, 320px);
  aspect-ratio: 3 / 4.4;
  transform: translateY(-50%) rotate(-9deg);
}

.hero-img-card--left img {
  object-position: 54% center;
}

.hero-img-card--right {
  right: -2%;
  top: 53%;
  z-index: 1;
  width: min(43%, 340px);
  aspect-ratio: 3 / 4.15;
  transform: translateY(-50%) rotate(8deg);
}

.hero-img-card--right img {
  object-position: center;
}

.intro-strip { padding: 40px 0; }
.intro-strip__inner { display: grid; grid-template-columns: 60fr 50fr; gap: 30px; align-items: center; }
.stats-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.consult-card { padding: 24px 28px; }
.consult-card .free-tag { color: var(--sv-purple); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.consult-card .free-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sv-orange); }
.consult-card h3 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.consult-card h3 em { font-size: 30px; }
.consult-card p { font-size: 16px; line-height: 26px; }
.mini-feature { display: flex; align-items: center; gap: 14px; padding: 16px 14px; }
.mini-feature i { color: var(--sv-orange); font-size: 18px; }
.mini-feature .mf-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--sv-orange);
}
.mini-feature .mf-sub { font-size: 15px; color: var(--sv-ink); }

.licensed-states {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--sv-white) 0%, var(--sv-cream) 100%);
}

.licensed-states__grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.licensed-states__grid > * {
  min-width: 0;
}

.licensed-states__copy p {
  max-width: 520px;
  overflow-wrap: anywhere;
  color: var(--sv-ink-soft);
}

.licensed-states__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 24px;
}

.licensed-states__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(212, 98, 26, .24);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--sv-white);
  box-shadow: 0 12px 26px -24px rgba(42, 10, 62, .45);
  color: var(--sv-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.licensed-states__note {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 430px;
  border-left: 3px solid var(--sv-orange);
  padding: 10px 0 10px 14px;
  color: var(--sv-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.licensed-states__note i {
  color: var(--sv-orange);
}

.licensed-states__visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 390px;
  border: 1px solid var(--sv-line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 38px);
  background:
    radial-gradient(circle at 18% 18%, rgba(123, 63, 160, .12), transparent 32%),
    linear-gradient(145deg, var(--sv-white) 0%, #F8F4FB 100%);
  box-shadow: 0 24px 64px -48px rgba(42, 10, 62, .48);
  overflow: hidden;
}

.licensed-states__map {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 18px rgba(42, 10, 62, .08));
}

.licensed-states__route {
  position: absolute;
  inset: clamp(22px, 4vw, 46px) clamp(18px, 3vw, 38px) clamp(52px, 8vw, 92px);
  z-index: 2;
  width: auto;
  height: auto;
  pointer-events: none;
}

.licensed-states__route-glow,
.licensed-states__route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.licensed-states__route-glow {
  stroke: rgba(255, 255, 255, .88);
  stroke-width: 15;
}

.licensed-states__route-line {
  stroke: rgba(123, 63, 160, .62);
  stroke-width: 5.5;
  stroke-dasharray: 15 15;
  animation: licensedRouteDash 3.2s linear infinite;
}

.licensed-states__route-dot {
  fill: var(--sv-orange);
  stroke: var(--sv-white);
  stroke-width: 5;
  filter: drop-shadow(0 8px 10px rgba(42, 10, 62, .18));
  animation: licensedRouteDot 3.6s cubic-bezier(.25, 1, .5, 1) infinite;
}

.licensed-states__delivery-marker {
  offset-path: path("M155 415 C 270 340 390 328 500 354 C 615 382 674 318 755 274 C 835 230 900 246 940 285");
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: licensedDeliveryMove 8.8s linear infinite;
  will-change: offset-distance;
}

.delivery-marker__halo {
  fill: rgba(255, 255, 255, .88);
  stroke: rgba(212, 98, 26, .32);
  stroke-width: 2;
  filter: drop-shadow(0 10px 16px rgba(42, 10, 62, .22));
}

.delivery-marker__shadow {
  fill: rgba(42, 10, 62, .16);
}

.delivery-marker__body,
.delivery-marker__cab {
  fill: var(--sv-white);
  stroke: var(--sv-ink);
  stroke-width: 3.2;
  stroke-linejoin: round;
}

.delivery-marker__window {
  fill: #F4ECF8;
  stroke: none;
}

.delivery-marker__cross,
.delivery-marker__hub {
  fill: var(--sv-orange);
}

.delivery-marker__wheel {
  fill: var(--sv-ink);
  stroke: var(--sv-white);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: licensedWheelSpin .8s linear infinite;
}

@keyframes licensedRouteDash {
  to { stroke-dashoffset: -60; }
}

@keyframes licensedDeliveryMove {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  7%,
  93% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes licensedRouteDot {
  0%,
  100% {
    transform: scale(1);
    opacity: .92;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes licensedWheelSpin {
  to { transform: rotate(360deg); }
}

.services-grid {
  align-items: stretch;
}

.services-grid .service-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border: 1px solid var(--sv-line);
  box-shadow: 0 18px 42px -34px rgba(42, 10, 62, .45);
}

.services-grid .service-card .learn-more {
  margin-top: auto;
}

.fluorowart-media { background: var(--sv-surface); border-radius: 24px; padding: 36px; position: relative; }
.fluorowart-media img { margin: 0 auto; max-height: 460px; width: auto; }
.fluorowart-badge {
  position: absolute; top: 22px; left: 22px;
  background: var(--sv-white); border-radius: 100px; box-shadow: var(--sv-shadow-soft);
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--sv-purple);
  padding: 8px 16px;
}
.fluorowart-sub { color: var(--sv-purple); font-family: "Playfair Display", serif; font-weight: 600; font-size: 22px; line-height: 1.35; margin-bottom: 14px; }

.start-cards .card, .start-cards .card--purple { padding: 34px; }
.transfer-form { margin-top: 8px; }
.stories-grid { margin-top: 10px; }
.patient-reviews .sec-head p {
  max-width: 690px;
  color: var(--sv-ink-soft);
}

.reviews-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 48px) / 3));
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(123, 63, 160, .35) transparent;
  padding: 8px 2px 18px;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(123, 63, 160, .32);
}

.patient-review-card {
  display: flex;
  min-height: 258px;
  flex-direction: column;
  border: 1px solid rgba(123, 63, 160, .11);
  scroll-snap-align: start;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.patient-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 63, 160, .22);
  box-shadow: 0 26px 54px -38px rgba(42, 10, 62, .48);
}

.patient-review-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.patient-review-card p {
  margin-bottom: 18px;
  color: var(--sv-ink-soft);
}

.patient-review-card__source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--sv-purple);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.patient-review-card__source::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sv-orange);
}
.stoneview-page-index .sec--ink {
  background: var(--sv-cream);
  padding: clamp(46px, 5vw, 66px) 0 clamp(42px, 5vw, 58px);
}
.stoneview-page-index .sec--ink.stoneview-cta-section > .wrap {
  width: min(calc(100% - 40px), 1180px) !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.stoneview-page-index .home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 0;
  padding: clamp(34px, 4.2vw, 52px) clamp(26px, 5vw, 60px);
  border: 0;
  border-radius: 24px;
  background: var(--sv-grad-brand);
  box-shadow: 0 24px 70px rgba(42, 10, 62, .16);
  color: #fff;
  overflow: hidden;
}
.stoneview-page-index .home-final-cta h2 {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
  color: #fff;
}
.stoneview-page-index .home-final-cta p {
  max-width: 620px;
  margin: 0;
  color: #fff;
}
.stoneview-page-index .home-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.stoneview-page-index .home-final-cta__contact {
  display: grid;
  gap: 18px;
}
.stoneview-page-index .home-final-cta__contact div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.stoneview-page-index .home-final-cta__contact div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.stoneview-page-index .home-final-cta__contact span {
  display: block;
  margin-bottom: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.stoneview-page-index .home-final-cta__contact a,
.stoneview-page-index .home-final-cta__contact p {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
  .hero h1 { font-size: 42px; line-height: 48px; }
  .hero-card-stack {
    width: min(100%, 620px);
    margin-inline: auto;
  }
  .hero-img-card--center { width: min(58%, 360px); }
  .hero-img-card--left { left: 8%; width: min(32%, 210px); }
  .hero-img-card--right { right: 8%; width: min(33%, 220px); }
}
@media (max-width: 860px) {
  .hero { background-attachment: scroll; padding: 22px 0 42px; }
  .hero__inner, .intro-strip__inner { grid-template-columns: 1fr; }
  .hero__inner { min-height: 0; }
  .hero-card-stack {
    order: -1;
    min-height: clamp(320px, 78vw, 500px);
    margin-bottom: 8px;
  }
  .hero-img-card--center { left: 50%; width: min(60%, 350px); }
  .hero-img-card--left { left: 8%; width: min(34%, 225px); }
  .hero-img-card--right { right: 8%; width: min(36%, 240px); }
  .licensed-states__grid { grid-template-columns: 1fr; }
  .licensed-states__visual { min-height: 0; }
  .reviews-carousel { grid-auto-columns: minmax(300px, 72vw); }
  .stoneview-page-index .home-final-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; line-height: 38px; }
  .hero-card-stack {
    min-height: clamp(260px, 76vw, 310px);
    margin-bottom: 0;
  }
  .hero-card-stack::before {
    font-size: 66px;
  }
  .hero-img-card { border-radius: 18px; }
  .hero-img-card--center { width: 61%; }
  .hero-img-card--left {
    left: 3%;
    top: 35%;
    width: 36%;
  }
  .hero-img-card--right {
    right: 3%;
    top: 57%;
    width: 38%;
  }
  .consult-card h3 em { font-size: 24px; }
  .consult-card h3 { font-size: 24px; }
  .licensed-states__chips { gap: 8px; }
  .licensed-states__chips span { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .licensed-states__visual { border-radius: 18px; padding: 14px 12px; }
  .licensed-states__route { inset: 18px 12px 24px; }
  .licensed-states__route-glow { stroke-width: 11; }
  .licensed-states__route-line { stroke-width: 4.2; }
  .reviews-carousel {
    grid-auto-columns: minmax(260px, 86vw);
    gap: 16px;
    padding-bottom: 14px;
  }
  .stoneview-page-index .home-final-cta {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .stoneview-page-index .home-final-cta__actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .licensed-states__route-line,
  .licensed-states__route-dot,
  .licensed-states__delivery-marker,
  .delivery-marker__wheel {
    animation: none;
  }

  .licensed-states__delivery-marker {
    offset-distance: 68%;
    opacity: 1;
  }

  .hero-img-card,
  .patient-review-card {
    transition: none;
  }

  .hero-card-stack:hover .hero-img-card--center,
  .patient-review-card:hover {
    transform: none;
  }
}
