/*------------------------------------------------/
              Variable and main settings
--------------------------------------------------*/
:root {
  --thumbnail-height: ;
  --thumbnail-width: ;
  --top-nav-height: ;
  --hero-btn-width: 190px;
  --product-tag-height: ;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

[data-product="PDR"] {
  --hover-color: #9dfafb;
  --link-color: #21EEEF;
  --nav-color: #4338fa;
  --hero-gradient: linear-gradient(170deg, rgba(1,94,247,1) 0%, rgba(163,0,254,1) 100%);
  --product-name-color: var(--link-color);
  --trial-button-color: transparent;
  --buy-button-color: var(--link-color);
  --buy-button-footer: var(--buy-button-color);
  --buy-button-text: black;
}

[data-product="PHD"] {
  --hover-color: #ffc458;
  --link-color: var(--hover-color);
  --nav-color: #ff762e;
  --hero-gradient: linear-gradient(166deg, #ffbc00 0%, #FF69EA 141%);
  --product-name-color: rgb(255, 228, 111);
  --trial-button-color: rgba(255, 115, 22, 0.3);
  --buy-button-color: rgba(255, 71, 0, 0.46);
  --buy-button-footer: var(--buy-button-color);
  --buy-button-text: white;
}

[data-product="ADR"] {
  --hover-color: #9b5bfe;
  --link-color: var(--hover-color);
  --nav-color: #6b1dfc;
  --hero-gradient: linear-gradient(170deg, rgba(124,88,252,1) 0%, rgb(159 22 217) 40%, rgba(71,0,209,1) 100%);
  --product-name-color: var(--link-color);
  --trial-button-color: transparent;
  --buy-button-color: #974cf5;
  --buy-button-footer: var(--buy-button-color);
  --buy-button-text: white;
}

[data-product="CDR"] {
  --hover-color: #ff6ff0;
  --link-color: var(--hover-color);
  --pricing-link-color: #ff4be8;
  --nav-color: #a403af;
  --hero-gradient: linear-gradient(300deg, rgb(255 206 0 / 36%) 0%, rgb(234 0 183 / 35%) 29%,rgb(132 0 255 / 82%) 72%, rgb(255 20 20 / 32%) 100%), linear-gradient(188deg, rgb(255 222 0) 0%, rgb(234 0 183) 45%,rgb(172 2 176) 72%, rgb(108 5 168) 100%);
  --product-name-color: var(--link-color);
  --trial-button-color: #00000012;
  --buy-button-color: #f510be;
  --buy-button-footer: #9a00eeb8;
  --buy-button-text: white;
}

/*------------------------------------------------/
                  Base style
--------------------------------------------------*/
#main-content {
  background-color: white;
}

/*------------------------------------------------/
                  Heroe section
--------------------------------------------------*/

.product-column {
  width: 50%;
  align-self: center;
}

.product-column > img {
  max-width: 100%;
}

.feature-hero {
  height: auto;
  padding: 0 0 3rem 0;
  display: flex;
  justify-content: center;
  background: var(--hero-gradient);
  z-index: 1; /* make sure this hero covers RD ones if set to visible */
}

.feature-hero .product {
  width: -webkit-fill-available;
  color: white;
}

.feature-hero h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.2;
  font-weight: 700;
  margin: .5rem 0;
  color: white;
}

.feature-hero .product img {
  width: 10%;
  min-width: 38px;
  max-width: 48px;
  margin-right: 2%;
}

.trial-btn {
  background-color: var(--trial-button-color) !important;
  color: white;
}

.buy-now-btn {
  background-color: var(--buy-button-color) !important;
  color: var(--buy-button-text);
}

.buy-now-btn span {
  color: var(--buy-button-text);
}

.footer-hero {
  height: auto;
  padding: 3rem 0;
  display: flex;
  flex-direction: row;
  background: var(--hero-gradient);
}

.feature-hero .product-info {
  display: flex;
  max-width: 1400px;
  margin: auto;
  flex-direction: row;
  margin-top: 3rem;
  padding: 1rem;
}

.footer-hero .product-info {
  max-width: 1250px;
  display: flex;
  margin: 0 auto;
}

.footer-hero .buy-now-btn {
  background-color: var(--buy-button-footer) !important;
}

section.hero.footer-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
}

img.top-feature-img {
 display: none;
}

/*----------------------------------------------------
                Promotional Ribbon
 ----------------------------------------------------*/

 .hero .promo_ribbon {
  position: absolute;
  left: 0;
}

 .promo-ribbon {
  position: absolute;
  left: 0;
  background-color:#ff0057;
  padding: 8px 16px;
  color: #fff;
  border-bottom-right-radius: 6px;
  font-weight: 700;
  z-index: 1;
 }

/*------------------------------------------------/
              Features nav bar
--------------------------------------------------*/

#feature_anchor_header {
  position: sticky;
  top: var(--top-nav-height);
  z-index: 5;
  max-width: 100%;
  height: 50px !important;
  backdrop-filter: blur(3px);
  background-color: #ffffffe3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

a.tab_off2 {
  width: auto;
  height: auto;
  border-left: 3px solid #000000;
  line-height: 20px;
  padding-right: 18px;
  padding-left: 18px;
  font-size: 13px;
  margin: 0;
  color: black;
}

a.tab_off2.active {
  color: var(--nav-color);
}

a.tab_off2:first-child {
  border-left: none;
}

a.tab_off2:hover {
  color: white;
  background: var(--nav-color);
  cursor: pointer;
}

/*------------------------------------------------/
              Features list section
--------------------------------------------------*/

section.feature-all {
  margin: 0 0 5rem;
}

.feature-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1800px;
  margin: auto;
  justify-content: center;
  row-gap: 60px;
  column-gap: 8%;
  padding: 0 5rem 5rem;
}

.category {
  width: 100%;
}

.category h2 {
  color: #000;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  font-weight: 700;
  margin: 4rem 0 1rem 0;
  width: 100%;
  padding: 0 20px;
  hyphens: auto;
}

.DEU .category h2 {
  line-break: anywhere;
}

.category p {
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-family: system-ui;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding: 0 20px;
  color: #000;
}

.feature {
  width: calc(100% / 3.9);
  position: relative;
  min-height: 100%;
  scroll-margin-top: 10rem;
}

.feature a {
  outline: 5px solid #ffffff;
  border-radius: 8px;
  transition: .2s;
  display: block;
  height: -webkit-fill-available;
  width: 100%;
  display: flow-root;
  place-items: center;
  height: 100%;
}

.feature a:hover {
  outline: 5px solid var(--hover-color);
  border-radius: 8px;
  box-shadow: 0px 0px 10px hsl(0deg 0% 0% / 21%);
  background: var(--hover-color);
}

.feature h3 {
  width: auto;
  padding-right: 26px;
  color: #000;
  margin: 0.7rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  justify-self: start;
}

.feature sup {
  font-size: 0.6vw;
  margin-right: 2px;
  top: -0.5rem;
}

.feature p {
  color: #000;
  font-size: clamp(.8rem, 2vw, .9rem);
  margin: 0 0.7rem 0.7rem;
}

.feature img {
  background: var(--hero-gradient);
  border-radius: 8px;
  position: relative;
  max-width: 100%;
}

.feature.arrow:after {
  content: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='_圖層_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 395.09 88.71'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;stroke-width:0px;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='m368.33,20.11c-6.26.21-12.53.58-18.79.58-7.56,0-14.43-2.16-20.1-7.44-2.93-2.72-4.26-6.01-3.14-9.86.39-1.33,1.71-3.01,2.92-3.32,1.17-.3,3.19.58,4.04,1.6,4.07,4.89,9.52,6.86,15.48,7.73,11.63,1.7,23.08-.43,34.55-1.93,1.12-.15,2.25-.88,3.19-1.58,2.25-1.69,5.31-1.71,6.92.12,2.11,2.39,2.37,6.21.13,7.93-10.25,7.86-13.73,19.39-17.18,30.98-1.83,6.17-3.11,12.37-2.43,18.89.22,2.12.92,4.99-2.58,5.6-3.51.61-5.97-1.86-6.81-4.61-.41-1.34-.16-2.98.13-4.41.91-4.49,2-8.94,2.97-13.42.91-4.21,1.77-8.43,2.76-13.17-3.68,2.34-7.01,4.5-10.37,6.6-18.73,11.71-38.58,21.06-59.39,28.48-15.46,5.51-31.24,9.8-47.29,13.04-14.85,3-29.82,5.46-44.99,6-14.1.5-28.24,1.13-42.32.6-13.22-.5-26.41-2.18-39.56-3.84-15.59-1.96-30.79-5.83-45.79-10.49-20.83-6.47-40.7-15.13-59.4-26.37-6.11-3.67-11.97-7.76-17.85-11.8C-.06,33.62-1,28.3,1.14,24.61c1.18-2.03,3.79-2.25,6.42-.43,4.17,2.88,8.24,5.9,12.47,8.7,20.28,13.45,42.18,23.55,65.44,30.53,11.75,3.53,23.71,6.59,35.76,8.84,11.51,2.15,23.24,3.5,34.93,4.22,13.13.81,26.34.93,39.49.64,19.61-.43,38.98-3.22,58.16-7.32,21.51-4.6,42.41-11.13,62.54-19.97,18.02-7.91,35.23-17.36,51.37-28.68.31-.22.67-.36,1.01-.53-.13-.17-.27-.34-.4-.5Z'/%3E%3C/svg%3E");
  position: absolute;
  width: 100%;
  top: calc(var(--thumbnail-height) / 1.22);
  padding: 0 calc(var(--thumbnail-height) / 1.7);
  filter: drop-shadow(2px 3px 3px black);
  opacity: 0;
  animation: 2s ease-in-out 0.6s forwards fadeInEffect;
}

@keyframes fadeInEffect {
  0% {opacity: 0;}
  100% {opacity: 0.85;}
}

.feature .red-tag {
  font-size: 13px;
  height: 30px;
  padding: 7px 25px 15px;
  position: absolute;
  left: -10px;
  top: -9px;
  color: white !important;
  background: -webkit-linear-gradient(0deg, rgb(255, 4, 85), rgb(255, 85, 218));
  background: (0deg, rgb(255, 4, 85), rgb(255, 85, 218));
  border-radius: 0;
  border-top-left-radius: 3px;
  z-index: 1;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0% 0%, 100% 0%, calc(100% - 10px) 100%, 10px 100%, 10px 150%, 0% 100%);
  -webkit-box-shadow: 0 15px #b81a35;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
  -moz-box-shadow: 0 15px #b81a35;  /* Firefox 3.5 - 3.6 */
  box-shadow: 0 15px #b81a35;
  text-shadow: 1px 1px 3px #bc0101cf;
}

.feature .product-tag {
  background: var(--hero-gradient);
  color: white;
  padding: 5px 8px;
  border-radius: 8px 0 8px 0;
  font-style: italic;
  position: absolute;
  right: 0;
  top: calc(var(--thumbnail-height) - var(--product-tag-height));
  z-index: 2;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 1rem);
  text-shadow: 2px 1px 2px #000000ba;
  box-shadow: -2px -3px 6px #0000008c;
}

.feature .detail {
  padding: 0 10px 10px 10px;
  color: #000;
  font-size: clamp(.8rem, 2vw, .9rem);
  line-height: 1.5;
}

.feature a.play:before,
.feature a.play:after {
  content: "";
  position: absolute;
  opacity: 0;
  top: calc(var(--thumbnail-height) / 1.5);
  left: calc(var(--thumbnail-width) / 2);
  transform: translate(-50%, -50%);
  transition: .2s;
}

.feature a.play:hover:before,
.feature a.play:hover:after {
  content: "";
  position: absolute;
  opacity: 1;
  top: calc(var(--thumbnail-height) / 2);
  transition: .2s;
}

.feature a.play:hover:after,
.feature a.play:after {
  width: 0;
  height: 0;
  border: 0.9em solid transparent;
  border-left: 1.5em solid var(--link-color);
  z-index: 2;
  transition: .2s;
  transform: translate(-26%, -50%);
}

.feature a.play:hover:before,
.feature a.play:before {
  width: 4em;
  height: 4em;
  border-radius: 50%;
  box-shadow: 0 0 24px hsl(0deg 0% 0% / 44%);
  background: rgb(255 36 73 / 78%);
  background: rgb(0 0 0 / 78%);
  z-index: 2;
  transition: .2s;
}

.btn-text {
  background: rgb(0 0 0 / 78%);
  position: absolute;
  z-index: 1;
  padding: 2% 14%;
  border-radius: 30px;
  width: fit-content;
  color: var(--link-color);
  top: calc(var(--thumbnail-height) / 1.5);
  opacity: 0;
  transition: 0.2s;
  font-size: clamp(.8rem, 2vw, .9rem);
  left: calc(var(--thumbnail-width) / 2);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

a.a-text:hover > .btn-text {
  opacity: 1;
  top: calc(var(--thumbnail-height) / 2);
}

@media (max-width: 1200px) {
  .feature-list {
    column-gap: 3%;
    row-gap: 57px;
    padding: 0 5vw;
  }

  .feature {
    width: calc(100% / 3.2);
  }
}

@media (max-width: 821px) {
  .feature-list {
    padding: 0 2vw;
  }

  .feature {
    width: calc(100% / 2.2);
  }
}

@media (max-width: 620px) {
 .promo-ribbon {
   width: 100vw;
   border-radius: 0;
   height: fit-content;
  }
}

@media (max-width: 600px) {
  .feature-list {
    padding: 0 2rem;
  }

  img.top-feature-img {
    max-width: 600px;
    display:block;
  }

  .feature {
    width: 100%;
  }

  .feature-hero .product-info,
  .footer-hero {
    flex-direction: column;
  }

  .feature-hero .product-info {
    margin-top: 6rem;
  }

  .footer-hero .product-info {
    flex-direction: column;
    width: 100%;
    max-width: 1800px;
    margin: auto;
  }

  .product-column {
    width: 100%;
  }
}
