/* Product Pages

   developer:   estevaot
   requires:    /common/framework/css/framework.en.css
                /common/framework/css/gui.en.css
   ========================================================================== */

:root {
  /* main colors */
  --main-color:#dd1100;
  --sub-color:#dd110026;
  --third-color:#009e92;
  --dark-color: #3a3a3a;
  /* light */
  --main-color-light: rgba(221, 17, 0, 0.04);
  --light-gray: #fbfbfb;
  /* links */
  --link-color-hover: #F77700;
}


/* ==========================================================================
   Structure
   ========================================================================== */
#page {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #707070;
  padding-top: 0;
  /* content wrapper */
  & .wrapper { 
    margin: 0 auto;
    max-width: 1130px;
    padding: 3rem 0;
  }
  /* sections */
  & section {
    scroll-margin-top: 50px;
    margin-inline: 2rem;
    & + section .wrapper {
      border-top:1px solid #ddd;
    }
  }
  & code {
    display: inline-block;
    font-family: 'DM Mono',monospace;
    font-size: .82rem;
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: .05rem .35rem;
    color: #3a3a3a;
  }
  & img { max-width:100%; }
  & details > summary {
    list-style-type: none;
    outline: none;
  }
  & details>summary::-webkit-details-marker {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
#page #hero {
  & h1 {
    font-size: 3.75rem;
    line-height: 3.125rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--main-color);
    line-height: 1.1;
    letter-spacing: -1px;
    & span { color: #404040; }
  }
  & h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #555;
  }
  & p {
    font-size: 1.375rem;
    line-height: 2.188rem;
  }
}

/* ==========================================================================
   Nav
   ========================================================================== */
#page #page-nav {
  position: sticky;
  background: var(--main-color);
  width: 100%;
  z-index: 999;
  top: 50px;      
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  & .wrapper {
    display: grid;
    grid-template-columns: auto auto;
    padding-block: 0;
    padding-inline: 1rem;
  }
  & .brand {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1rem;
    cursor: pointer;
  }
  & > ul {
    margin: 0 auto;
    padding: 0 0.5rem;
  }
  & li { display: inline-block; }
  & a {
    color: #fff;
    display: block;
    font-size: 1.125rem;
    line-height: 1;
    padding: 1.125rem 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    &:hover, &.active {
      color: #ffcc51;
    }
  }
} 

/* ==========================================================================
   Texts
   ========================================================================== */
#page {
  & h2 {
    color: var(--main-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.1875rem auto .75rem;
    text-align: left;
    &.h2_alternative {
      font-size: 1.375rem;
      font-weight: 600;
      color: #404040;
      text-transform: uppercase;
      margin-top: 2rem;
      padding-bottom: .5rem;
    }
  }  
  & .contrast h2 { color:#222; }
  & h3 {
    color: var(--sub-color);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 2rem 0 0;
    & ~ ul {
      margin: 0 auto 2rem auto;
    }
  }
  & a {
    color: var(--main-color);
    &:hover {
      color: var(--link-color-hover);
    }
  }
  & p {
    font-size: 1.375rem;
    color: #404040;
    line-height: 2.188rem;
    font-weight: 400;
  }
  & .subtitle {
    font-size: 1.5625rem;
    font-weight: 300;
    line-height: 2.25rem;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Resources #
   ========================================================================== */
#page #resources {
  & h3 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    color: #404040;
  }
  & h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    color: #404040;
    margin:0;
  }
  & .cards .card { transition: background-color .15s; }
  & .cards a.card:hover {
    border: solid 1px var(--sub-color);
    background-color: var(--main-color-light);
    & h4 { color: var(--main-color); }
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
#page .cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  padding-top: .5rem;
}

#page .card {
  border: 1px solid #e2e2e2;
  border-radius: .5rem;
  padding: 1.5rem;
  & .card__heading {
    color: var(--main-color);
    font-size: .875rem;
    font-weight: 900;
    line-height: .875rem;
    text-transform: uppercase;
    margin-bottom: 0;
  }
  & p {
    font-size: 1rem;
    line-height: 1.5;
  }
  & h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: .1rem;
    margin-bottom: .5rem;
  }
}

#page :is(#how-it-works,#right-size) .cards {
  padding-top: 1.5rem;
}

/* ==========================================================================
   Slider
   ========================================================================== */
#cycle-frame { width: 100%; }
.cycle-slide {
  margin-bottom: .25rem;
  & .col {
    display: table-cell;
    padding-right: 4%;
    vertical-align: top;
  }
}
.cycle-slide .col.half { width: 54%; }
.cycle-slide .col+.col { padding-right: 0;}
#cycle-pager {
  padding: 0;
  text-align: center;
  & span {
    color: #d9d9d9;
    cursor: pointer;
    display: inline-block;
    margin: 0 .35rem;
    font-size: 32px;
    position: relative;
  }
}
#cycle-pager span.cycle-pager-active, 
#cycle-pager span:hover {  color: #3c1764; }

/* ==========================================================================
   Right Size
   ========================================================================== */
#page #right-size {
  & div.details {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    & p:not(:last-of-type) { margin-bottom: 1rem; }
  }
  & div.details > .summary {
    font-size: 0.875rem; 
    font-weight: 600;
    color: var(--main-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    cursor:pointer;
    & span.less { display:none; }
    & span:hover { color: var(--link-color-hover); } 
    & + div { display:none; }
  }
  & div.details > .summary .more {
    display: block;
    &::after {
      content: "+";
      display: inline;
      margin-left: 3px;
    }        
  }
  & div.details.open {
    flex-direction: column-reverse;
    justify-content: flex-start;
    & .summary {
      margin-top: 1rem;
      & .more { display:none; }
      & .less {
        display: block;
        &::after {
          content: "-";
          display: inline;
          margin-left: 7px;
        }
      }
    }
    & .summary + div { display:block; }
  }
  & .cards:has(.card .details.open) { align-items: flex-start; }
}

/* ==========================================================================
   Faq
   ========================================================================== */
#page #faq {
  & .wrapper {
    padding-bottom: 0;
  }
  & .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    @media (max-width: 600px) {
      grid-template-columns: 1fr;
      gap: 0;
    }
    & details { 
      margin-bottom: 1.15rem;
      border-bottom: 1px solid #ddd;
      padding-bottom: 1.15rem;
      &:last-child { border:none; }
    }
    & details > summary {
      cursor: pointer;
      display: grid;
      grid-template-columns: 20px 1fr;
      gap: 0.6rem;
      & + div { 
        padding-top: .5rem;
        padding-left: calc(20px + .6rem); }
    }
    & details>summary::before {
      content: '+';
      font-size: 1.3rem;
      color: var(--main-color);
      font-weight: 600;
      text-align: center;
      line-height: 1.6rem;
    }
    & details[open]>summary::before {
      content: '-';
      line-height: 1.3rem;
    }
  }
  & h3 { 
    font-weight: 600;
    line-height: 1.444;
    color: #222;
    font-size: 1.1rem;
    max-width:500px;
    margin:0;
    text-wrap: unset;
  }
  & p, & a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Stripes
   ========================================================================== */
#page .full-stripe {
  background: var(--main-color);
  padding-inline: 2rem;
  & h2 {
    font-size:1.375rem;
    line-height:1.375rem;
    text-transform: uppercase;
    color: #fff;
  }
  & p {
    font-size: 1rem;
    line-height: 1.25rem;
    letter-spacing: -.07px;
    color: #fff;
  }
  & .btn {
    margin-inline:auto; 
  }
  @media (600px <= width <= 730px) {
    .btn {
      margin-left: 0;
      margin-top: 1rem;
    }
  } 
}

/* ==========================================================================
   Buttons
   ========================================================================== */
#page {
  & .btn,
  & a.btn {
    background: var(--main-color);
    /*font-size: 1rem;*/
    font-weight: 600;
    border-radius: 6px;
    display: block;
    color: #fff;
    max-width: fit-content;
    padding: 0.5rem 1rem;
    text-align: center;
    &:hover { 
      background: var(--sub-color); 
    }
  }
  & .btn-outline, a.btn-outline {
    background: var(--main-color);
    border:1px solid #fff;
    &:hover {
      background: #fff;
      color: var(--main-color);
    }
  }
}

/* ==========================================================================
   Misc
   ========================================================================== */
#page {
  .color-main, .color-main-hover:hover { color: var(--main-color) !important; }
  .color-sub, .color-sub-hover:hover { color: var(--sub-color) !important; }
  .color-third, .color-third-hover:hover { color: var(--third-color) !important; }
  .color-dark { color: var(--dark-color) !important; }

  .bg-main, .bg-main-hover:hover { background-color: var(--main-color) !important; }
  .bg-sub, .bg-sub-hover:hover { background-color: var(--sub-color) !important; }
  .bg-third, .bg-third-hover:hover { background-color: var(--third-color) !important; }
  .bg-main-light, .bg-main-light-hover:hover { background-color: var(--main-color-light) !important; }
  .bg-dark { background-color:  var(--dark-color) !important; }
  .bg-light-gray { background-color:  var(--light-gray) !important; }

  .border-color-main { border-color: var(--main-color) !important; }
  .border-color-dark { border-color:  var(--dark-color) !important; }
  .border-color-sub { border-color:  var(--sub-color) !important; }
  .border-color-thid { border-color:  var(--third-color) !important; }

  .margin-bt-3-2 { margin-block:1.5rem !important; }
  .margin-t-3-2 { margin-top:1.5rem !important; }
  .margin-b-3-2 { margin-bottom:1.5rem !important; }
}

/* ==========================================================================
   Media
   ========================================================================== */
@media all and (max-width: 900px) {
  #page #hero {
    & h1 { font-size:2.95rem }
    & h2 { font-size:1.525rem }
  }
  #page #page-nav a {
    font-size: .9rem;
    padding-inline: .2rem;
  }
}
@media all and (max-width: 600px) {
  #page {
    & h2 { font-size:1.5rem; }
    & h3 { font-size:1.188rem; }
    & p { 
      font-size:1.25rem;
      line-height:1.5; 
    }
  }
  #page #page-header .wrapper {     
    padding-top: 2rem;
    padding-bottom: 2.8125rem; 
  }
  #page #page-nav {    
    & .wrapper {       
      grid-template-columns: 1fr;
      padding-inline:0; 
      & > :is(div,ul) { padding-inline:1rem; }
    }
    & .brand {
      display: flex;
      align-items: center;
      height: 40px;
      cursor: pointer;
      &::after {
        content: "";
        display: inline-block;
        width: 10px;
        height: 7px;
        margin-left: 5px;
        background: url(/network-licensing/img/arrow-down.png) no-repeat;
        background-size: 10px 7px;
        filter: brightness(10);
        margin-top: 2px;
      }   
      &:not(.open):hover {
        background-color: #c92012;
      }   
    }
    & .menu {
      display: none;
      grid-template-columns: 1;
      width: 100%;
      background-color: #c92012;
      & > li:not(:last-child) {
        border-bottom: 1px solid #ad0b0b;
      }
    }
    & .brand.open {
      &.open::after {
        transform: rotate(180deg);
      }
      & + .menu {
        display: grid;
      }
    }
  }
  #page #hero {
    & h1 {
      font-size: 2.375rem;
      line-height: 2.438rem;
      & span { display:block; }
    }
    & h2 { 
      font-size:1.375rem;
      margin-bottom: 1.5rem;
    }
    & p {
      font-size: 1.25rem;
      line-height: 1.5;
    }
  }
  #page .cards { grid-template-columns: 1fr; }
  #page .full-stripe {
    & h2, & p { text-align:center; }
  }
}