.measure-guide {
  border: 1px solid #cfd9d1;
  background: #f4f7f1;
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 26px;
}
.measure-guide-head { display: flex; gap: 13px; align-items: flex-start; }
.measure-guide-head > span {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); font-weight: 700;
}
.measure-guide h3 { font: 700 19px Manrope; margin: 1px 0 4px; }
.measure-guide p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.measure-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.measure-steps > div {
  position: relative; background: white; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 13px 14px 44px; min-height: 116px;
}
.measure-steps b {
  position: absolute; left: 13px; top: 14px; width: 23px; height: 23px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: white; font-size: 11px;
}
.measure-steps strong, .measure-steps span { display: block; }
.measure-steps strong { font-size: 13px; margin: 2px 0 5px; }
.measure-steps span { font-size: 11px; line-height: 1.45; color: var(--muted); }
.measure-guide .measure-example {
  margin-top: 13px; padding-top: 12px; border-top: 1px solid #d7dfd8; color: var(--ink);
}
.coverage-note p { margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 720px) {
  .measure-steps { grid-template-columns: 1fr; }
  .measure-steps > div { min-height: 0; }
}

/* Animated before-and-after hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(430px, 1.6fr) minmax(160px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 52px);
  overflow: hidden;
  min-height: 590px;
  padding-inline: clamp(24px, 5vw, 92px);
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 28px; margin-top: 25px;
  padding: 14px 19px; border-radius: 3px; background: #00375f; color: white;
  text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 12px 30px rgba(0,55,95,.18); transition: transform .25s, box-shadow .25s;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(0,55,95,.25); }
.hero-transform { position: relative; z-index: 2; animation: heroFloat 5s ease-in-out infinite; }
.hero-after { animation-delay: -2.5s; }
.transform-image {
  position: relative; overflow: hidden; aspect-ratio: .78; border-radius: 50% 50% 8px 8px;
  background: #dfe3df; box-shadow: 0 24px 55px rgba(0,41,70,.20);
}
.transform-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.transform-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-before .transform-image img { filter: saturate(.55) contrast(.92); }
.hero-after .transform-image { border-radius: 8px 8px 50% 50%; }
.hero-after .transform-image img { animation: afterGlow 4s ease-in-out infinite; }
.transform-label {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 13px;
  color: #00375f; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 700;
}
.transform-label b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #00375f; color: white; letter-spacing: 0; }
.scan-line {
  position: absolute; z-index: 2; left: 0; right: 0; height: 3px; top: -5%;
  background: linear-gradient(90deg, transparent, #d6ee65 20%, white 50%, #d6ee65 80%, transparent);
  box-shadow: 0 0 16px #d6ee65; animation: scanRoom 3.2s ease-in-out infinite;
}
.scan-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 65px; background: linear-gradient(transparent, rgba(214,238,101,.14)); }
.spark { position: absolute; z-index: 3; color: #d6ee65; text-shadow: 0 0 16px white; animation: sparkle 2.2s ease-in-out infinite; }
.spark-one { right: 15%; top: 16%; font-size: 30px; }
.spark-two { left: 17%; bottom: 18%; font-size: 19px; animation-delay: -1.1s; }
.ai-bridge { position: absolute; z-index: 4; left: 50%; bottom: 91px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #00375f; font: 700 9px Manrope; letter-spacing: .08em; }
.ai-bridge span { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: #d6ee65; box-shadow: 0 0 0 7px rgba(214,238,101,.2); animation: aiPulse 2s ease-in-out infinite; }
.ai-bridge i { display: block; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, #77917e); }
.ai-bridge i:last-child { transform: scaleX(-1); }
.hero .trust { grid-column: 1 / -1; margin-top: 0; position: relative; z-index: 3; }
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes scanRoom { 0% { top: -4%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { top: 104%; opacity: 0; } }
@keyframes sparkle { 0%,100% { transform: scale(.55) rotate(0); opacity: .25; } 50% { transform: scale(1.25) rotate(30deg); opacity: 1; } }
@keyframes afterGlow { 0%,100% { filter: saturate(.92) brightness(.97); } 50% { filter: saturate(1.1) brightness(1.06); } }
@keyframes aiPulse { 50% { box-shadow: 0 0 0 13px rgba(214,238,101,0); transform: scale(1.08); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 150px 1fr 150px; gap: 16px; padding-inline: 18px; }
  .hero h1 { font-size: clamp(42px, 7vw, 66px); }
}
@media (max-width: 700px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; padding: 46px 18px 35px; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; margin-bottom: 15px; }
  .hero-transform { grid-row: 2; width: 86%; justify-self: center; }
  .transform-image { aspect-ratio: 1.12; border-radius: 12px; }
  .hero-after .transform-image { border-radius: 12px; }
  .ai-bridge { bottom: 78px; }
  .hero .trust { grid-row: 3; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-transform,.scan-line,.spark,.hero-after .transform-image img,.ai-bridge span { animation: none; }
}
