.hero {
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: 54px;
}


.hero-visual {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: start;
  min-width: 0;
}

.flow-step {
  position: relative;
  min-width: 0;
  text-align: center;
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--ld-navy);
  background: var(--ld-mint);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 0 0 12px rgba(110, 219, 193, 0.18);
}

.mini-screen {
  position: relative;
  width: 100%;
  max-width: 190px;
  height: 138px;
  margin-inline: auto;
  padding: 30px 20px;
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  box-shadow: var(--ld-shadow);
}

.mini-screen::before {
  position: absolute;
  top: 10px;
  left: 13px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--ld-mint);
  border-radius: 50%;
  box-shadow: 12px 0 0 #d9efea, 24px 0 0 #d9efea;
}

.mini-screen span,
.mini-screen i {
  display: block;
  height: 8px;
  margin-bottom: 13px;
  background: #dfe8e8;
  border-radius: 999px;
}

.mini-screen span:first-child {
  width: 78%;
}

.mini-screen span:nth-child(2) {
  width: 58%;
}

.mini-screen span:nth-child(3) {
  width: 70%;
}

.mini-screen i {
  width: 30%;
  background: var(--ld-mint);
}

.mini-screen-analysis b {
  float: left;
  width: 54px;
  height: 54px;
  margin: 14px 14px 0 0;
  border: 12px solid var(--ld-mint-soft);
  border-top-color: var(--ld-teal-dark);
  border-radius: 50%;
}

.mini-screen-expert em {
  float: left;
  width: 46px;
  height: 46px;
  margin: 12px 14px 0 0;
  background: radial-gradient(circle at 50% 35%, var(--ld-navy) 0 26%, transparent 27%), radial-gradient(circle at 50% 92%, var(--ld-navy) 0 36%, transparent 37%), var(--ld-mint-soft);
  border-radius: 50%;
}

.flow-step h2 {
  margin: 22px 0 8px;
  color: var(--ld-navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.flow-step p {
  max-width: 220px;
  margin: 0 auto;
  color: #405064;
  font-size: 0.92rem;
}

.flow-arrow {
  height: 1px;
  margin-top: 126px;
  background: repeating-linear-gradient(90deg, #aacac7 0 8px, transparent 8px 14px);
}

.flow-arrow::after {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  margin-left: auto;
  content: "";
  border-top: 1px solid #aacac7;
  border-right: 1px solid #aacac7;
  transform: rotate(45deg);
}

.hero-live-flow {
  display: grid;
  grid-column: 1 / -1;
  width: min(100%, 620px);
  margin: 34px auto 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(230, 246, 242, 0.58) 100%);
  border: 1px solid rgba(19, 95, 107, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(13, 59, 70, 0.045);
  gap: 12px;
}

.hero-live-flow p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--ld-navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--ld-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(110, 219, 193, 0.16);
}

.hero-live-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-live-flow li {
  position: relative;
  min-width: 0;
  padding: 9px 10px;
  color: #405064;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 232, 230, 0.82);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.js .hero-visual .flow-step,
.js .hero-visual .flow-arrow,
.js .hero-visual .hero-live-flow {
  opacity: 0;
}

.js .hero-visual .flow-step {
  transform: translateY(12px);
}

.js .hero-visual .hero-live-flow {
  transform: translateY(10px);
}

.js .hero-visual .flow-arrow {
  transform: scaleX(0);
  transform-origin: left center;
}

.js .hero-visual.is-visible .flow-step {
  animation: flow-step-in 560ms ease forwards;
}

.js .hero-visual.is-visible .flow-step:nth-of-type(2) {
  animation-delay: 220ms;
}

.js .hero-visual.is-visible .flow-step:nth-of-type(3) {
  animation-delay: 440ms;
}

.js .hero-visual.is-visible .flow-arrow {
  animation: flow-arrow-in 480ms ease forwards;
}

.js .hero-visual.is-visible .flow-arrow:nth-of-type(1) {
  animation-delay: 160ms;
}

.js .hero-visual.is-visible .flow-arrow:nth-of-type(2) {
  animation-delay: 380ms;
}

.js .hero-visual.is-visible .step-number {
  animation: step-number-pulse 620ms ease both;
}

.js .hero-visual.is-visible .hero-live-flow {
  animation: live-flow-in 520ms ease 620ms forwards;
}

.js .hero-visual.is-visible .live-dot {
  animation: live-dot-pulse 2200ms ease 900ms infinite;
}

.js .hero-visual.is-visible .hero-live-flow li {
  animation: live-status-soften 4200ms ease infinite;
}

.js .hero-visual.is-visible .hero-live-flow li:nth-child(2) {
  animation-delay: 1400ms;
}

.js .hero-visual.is-visible .hero-live-flow li:nth-child(3) {
  animation-delay: 2800ms;
}

.js .hero-visual.is-visible .flow-step:nth-of-type(2) .step-number {
  animation-delay: 220ms;
}

.js .hero-visual.is-visible .flow-step:nth-of-type(3) .step-number {
  animation-delay: 440ms;
}

@keyframes flow-step-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flow-arrow-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes step-number-pulse {
  0% {
    box-shadow: 0 0 0 8px rgba(110, 219, 193, 0.12);
    transform: scale(0.96);
  }

  55% {
    box-shadow: 0 0 0 15px rgba(110, 219, 193, 0.18);
    transform: scale(1.04);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(110, 219, 193, 0.18);
    transform: scale(1);
  }
}

@keyframes live-flow-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(110, 219, 193, 0.16);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(110, 219, 193, 0.1);
    transform: scale(1.08);
  }
}

@keyframes live-status-soften {
  0%,
  68%,
  100% {
    color: #405064;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(220, 232, 230, 0.82);
  }

  18%,
  34% {
    color: var(--ld-navy);
    background: rgba(230, 246, 242, 0.84);
    border-color: rgba(110, 219, 193, 0.44);
  }
}

.diagnostics,
.benefits {
  padding: 70px 0;
}

.diagnostics {
  scroll-margin-top: 96px;
}

.diagnostics .section-heading {
  max-width: 860px;
}


.diagnostic-universe {
  display: grid;
  gap: 28px;
}

.universe-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.universe-option {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 22px;
  color: var(--ld-text);
  text-align: left;
  cursor: pointer;
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(13, 59, 70, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.universe-option:hover {
  border-color: rgba(19, 95, 107, 0.35);
  box-shadow: var(--ld-shadow-soft);
  transform: translateY(-3px);
}

.universe-option.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf9 100%);
  border-color: rgba(19, 95, 107, 0.42);
  box-shadow: 0 14px 34px rgba(13, 59, 70, 0.07);
}

.universe-option span {
  color: var(--ld-navy);
  font-size: 1.12rem;
  font-weight: 900;
}

.universe-option small {
  color: var(--ld-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.universe-option.is-active small {
  color: var(--ld-teal-dark);
}

.diagnostic-panels {
  display: grid;
  gap: 34px;
}

.js .diagnostic-panel:not(.is-active) {
  display: none;
}

.group-label {
  margin-bottom: 14px;
  color: var(--ld-teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.diagnostic-grid-single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 420px);
  margin-inline: auto;
}

.diagnostic-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  background: var(--ld-white);
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(13, 59, 70, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.diagnostic-card:hover {
  border-color: rgba(19, 95, 107, 0.35);
  box-shadow: var(--ld-shadow-soft);
  transform: translateY(-4px);
}

.diagnostic-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ld-mint-soft);
}

.diagnostic-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(13, 59, 70, 0) 54%, rgba(13, 59, 70, 0.14) 100%);
  pointer-events: none;
}

.diagnostic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.diagnostic-card:hover .diagnostic-media img {
  transform: scale(1.035);
}

.diagnostic-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.diagnostic-body strong {
  color: var(--ld-navy);
  font-size: 1.12rem;
}

.diagnostic-body > span {
  color: #405064;
  font-size: 0.94rem;
}

.diagnostic-body small {
  align-self: end;
  color: var(--ld-teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 8px;
}

.tone-beauty .diagnostic-body small {
  color: var(--ld-rose);
}

.how {
  padding: 70px 0;
  border-block: 1px solid rgba(220, 232, 230, 0.62);
}


.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-item {
  position: relative;
  min-height: 294px;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  border: 1px solid var(--ld-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(13, 59, 70, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.benefit-item::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--ld-mint), rgba(19, 95, 107, 0.82));
}

.benefit-item:hover {
  border-color: rgba(19, 95, 107, 0.28);
  box-shadow: var(--ld-shadow-soft);
  transform: translateY(-4px);
}

.benefit-visual,
.benefit-item h3,
.benefit-item p {
  position: relative;
  z-index: 1;
}

.benefit-visual {
  display: block;
  width: 100%;
  max-width: 188px;
  margin-bottom: 20px;
}

.benefit-visual svg {
  width: 100%;
  height: auto;
}

.benefit-card-bg,
.benefit-avatar-bg {
  fill: var(--ld-white);
  stroke: rgba(19, 95, 107, 0.17);
  stroke-width: 1.5;
  filter: drop-shadow(0 12px 18px rgba(13, 59, 70, 0.08));
}

.benefit-panel {
  fill: var(--ld-teal-dark);
  opacity: 0.82;
}

.benefit-line {
  fill: rgba(19, 95, 107, 0.19);
}

.benefit-line-short {
  fill: rgba(19, 95, 107, 0.13);
}

.benefit-dot,
.benefit-orb,
.benefit-spark {
  fill: var(--ld-mint-soft);
  stroke: rgba(19, 95, 107, 0.16);
  stroke-width: 1.5;
}

.benefit-check,
.benefit-stroke {
  fill: none;
  stroke: var(--ld-teal-dark);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-shadow-line {
  fill: none;
  stroke: rgba(13, 59, 70, 0.12);
  stroke-width: 5;
  stroke-linecap: round;
}

.benefit-avatar {
  fill: none;
  stroke: var(--ld-navy);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-map {
  fill: rgba(230, 246, 242, 0.86);
  stroke: rgba(19, 95, 107, 0.18);
  stroke-width: 1.5;
  filter: drop-shadow(0 12px 18px rgba(13, 59, 70, 0.08));
}

.benefit-map-line {
  fill: none;
  stroke: rgba(19, 95, 107, 0.17);
  stroke-width: 1.5;
}

.benefit-route {
  fill: none;
  stroke: var(--ld-mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
}

.benefit-pin {
  fill: var(--ld-white);
  stroke: var(--ld-teal-dark);
  stroke-width: 4;
  stroke-linejoin: round;
}

.benefit-pin-dot {
  fill: var(--ld-mint);
}

.benefit-shield {
  fill: rgba(230, 246, 242, 0.92);
  stroke: rgba(19, 95, 107, 0.18);
  stroke-width: 1.5;
  filter: drop-shadow(0 12px 18px rgba(13, 59, 70, 0.08));
}

.benefit-shield-inner {
  fill: var(--ld-white);
  stroke: rgba(19, 95, 107, 0.24);
  stroke-width: 1.5;
}

.benefit-shield-check {
  stroke-width: 5;
}

.partner-band {
  padding: 64px 0;
  color: var(--ld-white);
  background: radial-gradient(circle at 16% 12%, rgba(110, 219, 193, 0.16), transparent 28%), linear-gradient(135deg, #082232, var(--ld-navy));
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.partner-inner .section-kicker,
.partner-inner h2 {
  color: var(--ld-white);
}

.partner-inner p:not(.section-kicker) {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}


@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 900px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 44px 0 56px;
  }

  .universe-switch,
  .diagnostic-grid,
  .benefit-row {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    border-bottom: 0;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-live-flow {
    width: min(100%, 460px);
    margin-top: 8px;
  }

  .hero-live-flow ol {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 1px;
    height: 28px;
    margin: 0 auto;
    background: repeating-linear-gradient(180deg, #aacac7 0 8px, transparent 8px 14px);
  }

  .flow-arrow::after {
    margin-top: 21px;
    margin-left: -4px;
    transform: rotate(135deg);
  }

  .js .hero-visual .flow-arrow {
    transform: scaleY(0);
    transform-origin: center top;
  }

  .js .hero-visual.is-visible .flow-arrow {
    animation-name: flow-arrow-in-vertical;
  }

  .partner-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .diagnostic-body {
    padding: 18px;
  }

  .universe-option {
    min-height: 96px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-visual .flow-step,
  .js .hero-visual .flow-arrow,
  .js .hero-visual .hero-live-flow,
  .js .hero-visual.is-visible .flow-step,
  .js .hero-visual.is-visible .flow-arrow,
  .js .hero-visual.is-visible .hero-live-flow {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .js .hero-visual.is-visible .step-number,
  .js .hero-visual.is-visible .live-dot,
  .js .hero-visual.is-visible .hero-live-flow li {
    animation: none;
  }
}

@keyframes flow-arrow-in-vertical {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
