/* Product commerce and single-device license presentation. */
.home-page .product-commerce-grid {
  align-items: stretch;
}

.home-page .product-commerce-card {
  min-height: 470px;
  padding: 30px;
  border-radius: 24px;
}

.product-commerce-main {
  position: relative;
  z-index: 1;
}

.home-page .product-commerce-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.home-page .product-commerce-main > p {
  margin-bottom: 22px;
}

.home-page .product-commerce-main .product-use-intro {
  margin-top: auto;
}

.product-brand-stamp {
  width: 82px;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  opacity: 0.88;
}

.product-brand-stamp img {
  width: 100%;
  height: auto;
  display: block;
}

.product-brand-stamp-detail {
  width: 112px;
  min-height: 31px;
  margin-bottom: 18px;
  opacity: 1;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-card-index {
  color: #9b8057;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.home-page .product-commerce-card h3 {
  margin-top: 23px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.home-page .product-commerce-card:hover h3,
.home-page .product-commerce-card:focus-within h3 {
  color: #0f766e;
  text-shadow: 0 0 18px rgba(15, 139, 105, 0.12);
}

.product-security-intro {
  position: relative;
  margin-top: 23px;
  padding: 18px 18px 18px 54px;
  overflow: hidden;
  border: 1px solid rgba(27, 112, 80, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(239, 250, 243, 0.9), rgba(255, 250, 240, 0.74));
}

.product-security-intro::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 21px;
  height: 18px;
  border: 2px solid #0f766e;
  border-radius: 6px;
  content: "";
}

.product-security-intro::after {
  position: absolute;
  top: 11px;
  left: 23px;
  width: 11px;
  height: 12px;
  border: 2px solid #0f766e;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.product-security-intro > span,
.product-security-intro > strong,
.product-security-intro > p {
  display: block;
}

.product-security-intro > span {
  color: #a37635;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.product-security-intro > strong {
  margin-top: 6px;
  color: #24483b;
  font-size: 14px;
}

.home-page .product-security-intro > p {
  margin-top: 5px;
  color: #6d7e76;
  font-size: 11px;
  line-height: 1.65;
}

.product-use-intro {
  --use-accent: #168467;
  --use-soft: rgba(226, 247, 237, 0.76);
  position: relative;
  margin-top: 22px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(27, 112, 80, 0.14);
  border: 1px solid color-mix(in srgb, var(--use-accent) 18%, transparent);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--use-soft), rgba(255, 255, 255, 0.88) 68%, rgba(255, 250, 239, 0.72));
}

.product-use-intro::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: inherit;
  background: var(--use-accent);
  content: "";
}

.product-use-intro.is-service {
  --use-accent: #ad7b2f;
  --use-soft: rgba(253, 244, 221, 0.78);
}

.product-use-intro.is-content {
  --use-accent: #3c7f72;
  --use-soft: rgba(228, 245, 240, 0.76);
}

.product-use-intro.is-translation {
  --use-accent: #667d72;
  --use-soft: rgba(237, 244, 239, 0.82);
}

.product-use-intro > span,
.product-use-intro > strong,
.product-use-intro > p {
  display: block;
}

.product-use-intro > span {
  color: var(--use-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-use-intro > strong {
  margin-top: 7px;
  color: #21483a;
  font-size: 15px;
  line-height: 1.55;
}

.product-use-intro > p,
.home-page .product-use-intro > p {
  margin: 7px 0 0;
  color: #687a72;
  font-size: 12px;
  line-height: 1.7;
}

.product-use-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.product-use-flow span {
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid rgba(27, 112, 80, 0.11);
  border: 1px solid color-mix(in srgb, var(--use-accent) 14%, transparent);
  border-radius: 999px;
  color: #49685c;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.product-use-flow i {
  color: var(--use-accent);
  font-size: 11px;
  font-style: normal;
}

.product-purchase-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(32, 98, 73, 0.1);
}

.product-purchase-row > div span,
.product-purchase-row > div strong {
  display: block;
}

.product-purchase-row > div span {
  color: #9a7a47;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-purchase-row > div strong {
  margin-top: 7px;
  color: #315346;
  font-size: 13px;
}

.product-purchase-row .btn {
  min-width: 126px;
}

.home-page .product-commerce-card .product-links,
.home-page .product-commerce-card:hover .product-links,
.home-page .product-commerce-card:focus-within .product-links {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: none;
}

.product-secondary-links {
  align-items: center;
  gap: 17px;
  margin-top: 16px;
}

.product-secondary-links a,
.product-secondary-links button {
  position: relative;
  padding: 0 0 3px;
  color: #687b73;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.product-secondary-links a:hover,
.product-secondary-links a:focus-visible,
.product-secondary-links button:hover,
.product-secondary-links button:focus-visible {
  color: #0f766e;
  border-bottom-color: rgba(15, 118, 110, 0.35);
  outline: none;
}

.product-security-banner {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 19px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(31, 103, 76, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 249, 242, 0.82));
  box-shadow: 0 18px 48px rgba(43, 85, 68, 0.08);
}

.product-security-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, #0f766e, #3ab286);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.product-security-banner:has(.product-security-logo) {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}

.product-security-mark.product-security-logo {
  width: 96px;
  height: auto;
  display: flex;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-security-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.product-security-banner small,
.product-security-banner strong,
.product-security-banner p {
  display: block;
}

.product-security-banner small {
  color: #9b7842;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-security-banner strong {
  margin-top: 6px;
  color: #24483b;
  font-size: 15px;
}

.product-security-banner p {
  margin: 5px 0 0;
  color: #6a7c74;
  font-size: 11px;
  line-height: 1.65;
}

.product-security-banner > a {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

#membership-checkout {
  scroll-margin-top: 104px;
}

.member-purchase-context {
  position: relative;
  margin: 22px 0 2px;
  padding: 17px 18px 17px 52px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, #edf9f2, #fff9ec);
}

.member-purchase-context::before {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 21px;
  height: 17px;
  border: 2px solid #0f766e;
  border-radius: 4px;
  content: "";
}

.member-purchase-context::after {
  position: absolute;
  top: 15px;
  left: 24px;
  width: 9px;
  height: 5px;
  border: 2px solid #0f766e;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.member-purchase-context > span,
.member-purchase-context > strong,
.member-purchase-context > p {
  display: block;
}

.member-purchase-context > span {
  color: #a17431;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.member-purchase-context > strong {
  margin-top: 5px;
  color: #245040;
  font-size: 14px;
}

.member-purchase-context > p {
  margin: 5px 0 0;
  color: #6e8078;
  font-size: 10px;
  line-height: 1.6;
}

.member-device-policy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-top: 13px;
  padding: 15px;
  border: 1px solid rgba(31, 111, 83, 0.1);
  border-radius: 13px;
  background: #f7faf7;
}

.member-device-policy > span {
  padding: 5px 7px;
  color: #a17535;
  border-radius: 6px;
  background: #fff7e9;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.member-device-policy strong,
.member-device-policy p {
  display: block;
}

.member-device-policy strong {
  color: #315548;
  font-size: 11px;
}

.member-device-policy p {
  margin: 5px 0 0;
  color: #7b8b84;
  font-size: 9px;
  line-height: 1.6;
}

.member-checkout-card.purchase-focus {
  animation: purchase-card-focus 2.6s ease both;
}

.product-license-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f3faf5, #fff9ef) !important;
}

.product-license-section::before {
  position: absolute;
  top: -180px;
  right: -110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(46, 174, 127, 0.12), transparent 69%);
}

.product-license-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1.25fr);
  gap: 54px;
  align-items: center;
}

.product-license-copy h2 {
  margin: 13px 0 0;
  color: #17332a;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.product-license-copy > p {
  max-width: 560px;
  margin: 17px 0 0;
  color: #63766e;
  font-size: 14px;
  line-height: 1.85;
}

.product-license-copy .section-actions {
  margin-top: 25px;
}

.product-license-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-license-rules article {
  min-height: 198px;
  padding: 22px;
  border: 1px solid rgba(31, 103, 76, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(42, 84, 67, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-license-rules article:hover {
  border-color: rgba(15, 118, 110, 0.26);
  box-shadow: 0 24px 58px rgba(42, 84, 67, 0.12);
  transform: translateY(-5px);
}

.product-license-rules article > span {
  display: block;
  color: #b07a30;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.product-license-rules article > strong {
  display: block;
  margin-top: 35px;
  color: #24483b;
  font-size: 17px;
}

.product-license-rules article > p {
  margin: 9px 0 0;
  color: #6c7e76;
  font-size: 11px;
  line-height: 1.75;
}

@keyframes purchase-card-focus {
  0%, 100% { box-shadow: 0 28px 78px rgba(38, 84, 65, 0.11); }
  35% { box-shadow: 0 30px 86px rgba(15, 118, 110, 0.22), 0 0 0 5px rgba(15, 118, 110, 0.08); }
}

@media (max-width: 980px) {
  .product-license-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-page .product-commerce-card {
    min-height: 0;
    padding: 23px;
  }

  .product-purchase-row,
  .product-security-banner {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .product-purchase-row .btn {
    width: 100%;
  }

  .product-security-mark {
    width: 44px;
    height: 44px;
  }

  .product-security-banner:has(.product-security-logo) {
    grid-template-columns: 1fr;
  }

  .product-security-mark.product-security-logo {
    width: 92px;
    height: auto;
  }

  .product-security-banner > a {
    white-space: normal;
  }

  .member-device-policy {
    grid-template-columns: 1fr;
  }

  .product-license-rules {
    grid-template-columns: 1fr;
  }

  .product-license-rules article {
    min-height: 160px;
  }

  .product-license-rules article > strong {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-checkout-card.purchase-focus {
    animation: none;
  }
}
