.guarantee {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(ellipse 72% 42% at 100% 0%, rgba(226, 210, 255, 0.72), transparent 70%),
    radial-gradient(ellipse 64% 36% at 0% 100%, rgba(245, 206, 241, 0.42), transparent 72%),
    #f7f4ff;
}

.guarantee__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.guarantee__ribbon {
  position: absolute;
  display: block;
  overflow: visible;
}

.guarantee__ribbon--top {
  top: -36px;
  right: -8%;
  width: min(92%, 640px);
  height: 280px;
}

.guarantee__ribbon--bottom {
  bottom: -48px;
  left: -12%;
  width: min(88%, 620px);
  height: 260px;
}

.guarantee__ribbon-fill {
  fill: url(#guarantee-ribbon);
  opacity: 0.72;
}

.guarantee__ribbon-line {
  fill: none;
  stroke: #cbb8f6;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.7;
}

.guarantee .shell {
  position: relative;
  z-index: 1;
}

.guarantee .eyebrow {
  color: #8d74c8;
}

.guarantee h2 {
  max-width: 11em;
  color: #16141c;
  font-size: clamp(1.9rem, 8.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.guarantee__accent {
  display: block;
  background: linear-gradient(100deg, #6d46f5 0%, #a04cf0 46%, #e23cad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.guarantee__lead {
  max-width: 28em;
  margin-top: 14px;
  color: #5c5668;
  font-size: 1.02rem;
  line-height: 1.45;
}

.guarantee__track {
  --icon: 48px;
  --gap: 14px;
  display: grid;
  gap: var(--gap);
  margin: 28px 0 0;
  padding: 0;
}

.guarantee__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--icon) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.guarantee__item:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(var(--icon) / 2);
  top: calc(var(--icon) / 2);
  width: 1.5px;
  height: calc(100% + var(--gap));
  border-radius: 999px;
  background: #cbb8f4;
  transform: translateX(-50%) scaleY(var(--seg, 1));
  transform-origin: top center;
  pointer-events: none;
}

.guarantee__item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: calc(var(--icon) / 2);
  top: calc((100% + var(--gap)) / 2 + (var(--icon) / 2));
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px #cbb8f4;
  transform: translate(-50%, -50%);
  opacity: var(--seg, 1);
  pointer-events: none;
}

.guarantee__mark {
  position: relative;
  z-index: 1;
  width: var(--icon);
  height: var(--icon);
}

.guarantee__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guarantee__panel {
  min-width: 0;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(80, 40, 140, 0.06);
}

.guarantee__index {
  color: #9a84d4;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.guarantee__panel h3 {
  margin-top: 6px;
  color: #1a1722;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.guarantee__panel p:last-child {
  margin-top: 6px;
  color: #6b6578;
  font-size: 0.95rem;
  line-height: 1.45;
}

.guarantee__complete {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 22px;
}

.guarantee__seal {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 28px rgba(80, 40, 140, 0.05);
}

.guarantee__check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #7a4dff;
}

.guarantee__check svg {
  display: block;
  width: 48px;
  height: 48px;
}

.guarantee__complete-label,
.guarantee__complete-note {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.guarantee__complete-label {
  color: #6d46f5;
  font-size: 0.68rem;
}

.guarantee__complete-note {
  margin-top: 4px;
  color: #b09ad8;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.guarantee__details {
  color: #6d46f5;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.guarantee__details:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 390px) {
  .guarantee__track {
    --icon: 56px;
    --gap: 16px;
  }

  .guarantee__item {
    gap: 12px;
  }

  .guarantee__panel {
    padding: 14px 16px 16px;
  }
}

@media (min-width: 768px) {
  .guarantee__track {
    --icon: 68px;
    --gap: 20px;
  }

  .guarantee__item {
    gap: 16px;
  }

  .guarantee h2 {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
  }

  .guarantee__lead {
    font-size: 1.08rem;
  }

  .guarantee__panel h3 {
    font-size: 1.15rem;
  }

  .guarantee__panel p:last-child {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .guarantee__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    column-gap: clamp(28px, 4vw, 72px);
    align-items: start;
  }

  .guarantee h2 {
    max-width: 8.2em;
    font-size: clamp(2.8rem, 3.8vw, 4.15rem);
  }

  .guarantee__lead {
    max-width: 18em;
    margin-top: 18px;
  }

  .guarantee__track {
    --icon: 76px;
    --gap: 6px;
    margin-top: 8px;
  }

  .guarantee__item {
    gap: 18px;
  }

  .guarantee__panel {
    padding: 6px 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .guarantee__item:not(:last-child) .guarantee__panel {
    border-bottom: 1px solid rgba(186, 166, 224, 0.55);
  }

  .guarantee__index {
    font-size: 0.78rem;
  }

  .guarantee__panel h3 {
    font-size: 1.28rem;
  }

  .guarantee__complete {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 24px;
    margin-top: 28px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 28px rgba(80, 40, 140, 0.05);
  }

  .guarantee__seal {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .guarantee__details {
    text-align: right;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guarantee__ribbon--top {
    animation: guarantee-drift 16s ease-in-out infinite;
  }

  .guarantee__ribbon--bottom {
    animation: guarantee-drift 18s ease-in-out infinite reverse;
  }

  html.js .guarantee__track:not(.is-static):not(.is-played) .guarantee__item {
    opacity: 0;
  }

  html.js .guarantee__track:not(.is-static):not(.is-played) .guarantee__item::before {
    transform: translateX(-50%) scaleY(var(--seg, 0));
  }

  html.js .guarantee__track:not(.is-static):not(.is-played) .guarantee__item::after {
    opacity: var(--seg, 0);
  }
}

@keyframes guarantee-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 10px, 0); }
}

[data-theme="dark"] .guarantee {
  background:
    radial-gradient(ellipse 72% 42% at 100% 0%, rgba(92, 54, 170, 0.38), transparent 70%),
    radial-gradient(ellipse 64% 36% at 0% 100%, rgba(150, 50, 130, 0.22), transparent 72%),
    var(--bg);
}

[data-theme="dark"] .guarantee .eyebrow,
[data-theme="dark"] .guarantee__index,
[data-theme="dark"] .guarantee__complete-note {
  color: #c5b4f0;
}

[data-theme="dark"] .guarantee h2,
[data-theme="dark"] .guarantee__panel h3 {
  color: var(--ink);
}

[data-theme="dark"] .guarantee__lead,
[data-theme="dark"] .guarantee__panel p:last-child {
  color: var(--ink-muted);
}

[data-theme="dark"] .guarantee__panel,
[data-theme="dark"] .guarantee__seal {
  border-color: rgba(245, 240, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

[data-theme="dark"] .guarantee__item:not(:last-child)::before {
  background: rgba(185, 160, 255, 0.7);
}

[data-theme="dark"] .guarantee__item:not(:last-child)::after {
  background: #1a1424;
  box-shadow: 0 0 0 1.5px rgba(185, 160, 255, 0.7);
}

[data-theme="dark"] .guarantee__item:not(:last-child) .guarantee__panel {
  border-bottom-color: rgba(196, 176, 236, 0.28);
}

@media (min-width: 1024px) {
  [data-theme="dark"] .guarantee__panel,
  [data-theme="dark"] .guarantee__seal {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  [data-theme="dark"] .guarantee__complete {
    border-color: rgba(245, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }
}
