@import "./normalize.css";

:root {
  --color-primary: #2584ff;
  --color-secondary: #00d9ff;
  --color-accent: #ff3400;
  --color-heading: #1b0767;
  --color-body: #918ca4;
  --color-body-darker: #5c5577;
  --border-radius: 40px;
  --box-shadow: #f3f3f3;
}
/*fonts*/
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-regular-webfont.woff2") format("woff2"),
    url("./fonts/inter-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-bold-webfont.woff2") format("woff2"),
    url("./fonts/inter-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-thin-webfont.woff2") format("woff2"),
    url("./fonts/inter-thin-webfont.woff") format("woff");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-semibold-webfont.woff2") format("woff2"),
    url("./fonts/inter-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}
/*Typographie*/
html {
  font-size: 62.5%;
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--color-body);
  font-size: 2rem;
  line-height: 1.5;
}
h1,
h2,
h3 {
  color: var(--color-heading);
  margin-bottom: 1rem;
  line-height: 1.1;
}
h1 {
  font-size: 7rem;
}
h2 {
  font-size: 4rem;
}
h3 {
  font-size: 3rem;
}
p {
  margin-top: 0;
}
@media screen and (min-width: 1024px) {
  body {
    font-size: 1.8rem;
  }
  h1 {
    font-size: 8rem;
  }
  h2 {
    font-size: 4rem;
  }
  h3 {
    font-size: 2.4rem;
  }
}
.bold {
  font-weight: bold;
}
/*Links*/
a {
  text-decoration: none;
  color: var(--color-body);
}
.link-small:hover {
  color: white;
  opacity: 1;
}
.link-arrow {
  text-transform: uppercase;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: bold;
}
.link-arrow::after {
  content: "\f061";
  margin-left: 5px;
  font-family: "Font Awesome 6 Free";
  transition: margin 0.15s;
}
.link-arrow:hover::after {
  margin-left: 10px;
}
@media screen and (min-width: 1024px) {
  link-arrow {
    font-size: 1.8rem;
  }
}
/*Badges*/
/*Structure*/
.badge {
  border-radius: var(--border-radius);
  padding: 0.5rem 2.5rem;
  font-weight: bold;
  white-space: nowrap;
  font-size: inherit;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*Skin*/
.badge--primary {
  background: var(--color-primary);
  color: white;
}
.badge--secondary {
  background: var(--color-secondary);
  color: white;
}
.badge--small {
  font-size: 1.6rem;
  padding: 0.5rem 1.5rem;
}
@media screen and (min-width: 1024px) {
  .badge {
    font-size: inherit;
  }
  .badge--small {
    font-size: 1.2rem;
  }
}
/*Lists*/
.list {
  list-style: none;
  padding-left: 0;
  color: var(--color-heading);
}
.list--inline .list__item {
  display: inline-block;
  margin-right: 2rem;
}
.list--tick {
  list-style-image: url(../icons/tick.svg);
  padding-left: 3rem;
}
.list--tick .list__item {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}
@media screen and (min-width: 1024px) {
  .list--tick .list__item {
    padding-left: 0;
  }
}
/*Icons*/
.icon {
  width: 64px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  padding: 10px;
  box-sizing: border-box;
  overflow: visible;
}
.icon--primary {
  fill: var(--color-primary);
}
.icon--grey-bg {
  background: #f3f9f9;
}
.icon--dark-grey-bg {
  background: #333;
}
.icon--accent {
  background: var(--color-accent);
  fill: #fff;
}
.icon--small {
  padding: 15px;
}
.icon--white {
  fill: #fff;
}
/*Buttons*/
.btn {
  border-radius: var(--border-radius);
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  margin: 1rem 0;
  padding: 2rem 3rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 2rem;
  white-space: nowrap;
}
.btn--secondary {
  background: var(--color-secondary);
  color: #fff;
}
.btn--secondary:hover {
  background: #00c8db;
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: #ec3000;
}
.btn--ghost {
  background-color: #fff;
  border: 2px solid var(--color-heading);
  color: var(--color-heading);
}
.btn--ghost:hover {
  background-color: var(--color-heading);
  color: #fff;
}
.btn--block {
  width: 100%;
  display: inline-block;
}
.btn--stretched {
  padding-left: 6rem;
  padding-right: 6rem;
}
/*for placing icons left of the text of a button (i with this class inside button)*/
.btn-icon {
  margin-right: 1rem;
}
@media screen and (min-width: 1024px) {
  .btn {
    font-size: 1.5rem;
  }
}
/*Inputs*/
.in {
  border-radius: var(--border-radius);
  border: 1px solid #ccc;
  display: inline-block;
  padding: 1.5rem 3.5rem;
  outline: 0;
  color: var(--color-heading);
  width: 0;
}
::placeholder {
  color: #cdcbd7;
  font-size: 2rem;
}
/*Input with Button*/
.input--group {
  box-sizing: border-box;
  border-radius: var(--border-radius);
  display: flex;
  align-content: center;
}
.input--group .in {
  border: none;
  flex-grow: 1;
  padding: 2rem 2rem;
}
.input--group .btn {
  margin: 5px;
}
/*Cards*/
.card {
  border-radius: 7px;
}
.card--padding {
  padding: 3rem;
}
.card__header,
.card__body {
  padding: 2rem 4rem;
}
.card--primary .card__header {
  background: var(--color-primary);
  color: #fff;
}
.card--secondary .card__header {
  background: var(--color-secondary);
  color: #fff;
}
.card--primary .badge--primary {
  background: #2376e2;
}
.card--secondary .badge--secondary {
  background: #02cdf1;
}
/*Plan*/
.plan {
  transition: transform 0.25s;
  box-sizing: border-box;
}
.plan__name {
  color: #fff;
  margin: 0;
  font-weight: normal;
}
.plan__price {
  font-size: 5rem;
}
.plan__billing-cycle {
  opacity: 0.8;
  margin-right: 1rem;
  font-size: 2rem;
}
.plan__description {
  letter-spacing: 1px;
}
.plan__name,
.plan__description,
.plan .list__item {
  font-size: 2.4rem;
}
.plan:hover {
  transform: scale(1.05);
}
.plan .list__item {
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
@media screen and (min-width: 1024px) {
  .plan__billing_cycle,
  .plan__description,
  .plan .list__item {
    font-size: 1.8rem;
  }
  .plan__name {
    font-size: 1.5rem;
  }
}
/*popular badge*/
/*when there is an obj with absolute pos, the container has to be positioned relative!*/
.plan--popular .card__header {
  position: relative;
}
.plan--popular .card__header::before {
  content: url("../icons/popular.svg");
  width: 40px;
  display: inline-block;
  position: absolute;
  right: 5%;
  top: -6px;
}
@media screen and (min-width: 1024px) {
  .plan--popular {
    transform: scale(1.1);
  }
  .plan--popular:hover {
    transform: scale(1.15);
  }
}
/*Media element*/
.media {
  display: flex;
}
.media__body {
  margin: 0 2rem;
}
.media__title {
  margin-top: 0;
}
.media__image {
  margin-top: 1rem;
}
/*Quotes*/
.quote__text {
  font-size: 2rem;
  font-style: italic;
  color: var(--color-body-darker);
  line-height: 1.3;
}
.quote__text::before,
.quote__text::after {
  content: '"';
}
.quote__name {
  font-weight: 400;
  font-size: 2.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}
.quote__company {
  font-size: 2rem;
  color: var(--color-heading);
  opacity: 0.4;
  white-space: nowrap;
}
.quote__icon {
  position: relative;
  bottom: 10px;
}
@media screen and (min-width: 1024px) {
  .quote__text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .quote__name {
    font-size: 2.5rem;
  }
  .quote__company {
    font-size: 1.6rem;
  }
}
/*Grids*/
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media screen and (min-width: 768px) {
  .grid--cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (min-width: 1024px) {
  .grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/*Testimonials*/
.testimonial,
.testamonial__body {
  width: 100%;
  box-sizing: border-box;
}
.testamonial * {
  width: 100%;
  box-sizing: border-box;
}
.testimonial__image {
  position: relative;
  padding: 0 1rem;
}
.testimonial__image > img {
  width: 100%;
  border-radius: 7px;
}
.testimonial__image > .icon {
  position: absolute;
  top: 25px;
  right: -25px;
}
.testimonial__quote {
  margin-left: 4vh;
}
@media screen and (min-width: 768px) {
  .testimonial .quote__text,
  .testimonial .quote__name {
    font-size: 2.4rem;
  }
}
/*Callout component*/
.callout {
  padding: 4rem;
  box-sizing: border-box;
}
.callout__content {
  text-align: center;
}
.callout__content * {
  color: #fff;
  margin: 0;
}
.callout__heading {
  font-size: 3rem;
  margin-bottom: 2rem;
}
.callout__btn {
  justify-self: center;
  align-self: center;
  width: fit-content;
  height: fit-content;
  margin-top: 5rem;
}
.callout--primary {
  background: var(--color-primary);
  color: #fff;
}
@media screen and (min-width: 768px) {
  .callout {
    border-radius: 7px;
  }
  .callout__content {
    text-align: left;
  }
  .callout__btn {
    justify-self: start;
    margin: 0 2rem;
  }
  .callout .grid--cols-2 {
    grid-template-columns: 1fr auto;
  }
}
/*Collapsibels*/
.collapsible {
  padding: 2rem;
}
.collapsible__header {
  display: flex;
  margin-top: 0;
  justify-content: space-between;
}
.collapsible__heading {
  margin: 0;
  font-size: 3rem;
  align-self: center;
}
.collapsible__chevron {
  transform: rotate(-90deg);
  transition: transform 0.3s;
}
.collapsible__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s;
}
.collapsible--expanded .collapsible__chevron {
  transform: rotate(0);
}
.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
}
/*Block*/
.block {
  --padding-vertical: 6rem;
  padding: var(--padding-vertical) 2rem;
}
.block__heading {
  margin-top: 0;
}
.block__header {
  text-align: center;
  margin-bottom: 3rem;
}
.block--dark {
  background: #000;
}
.block--dark h1,
.block--dark h2,
.block--dark h3,
.block--dark p,
.block--dark .link-small {
  color: #fff;
}
.block--dark p,
.block--dark .link-small {
  opacity: 0.7;
}
.block--dark .link-small:hover {
  opacity: 1;
}
.block--dark > .block__heading {
  color: inherit;
}
.block__paragraph {
  opacity: 0.75;
}
.block--skewed-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
  padding-bottom: calc(var(--padding-vertical) + 4rem);
}
.block--skewed-left {
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  padding-bottom: calc(var(--padding-vertical) + 4rem);
}

/*navbar*/
.nav {
  background: #000;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__toggler {
  overflow: hidden;
  clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%);
  align-self: center;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.nav__toggler:hover {
  opacity: 1;
  cursor: pointer;
}
.nav__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.nav__item {
  padding-bottom: 1.5rem;
}
.nav__item > a {
  color: #fff;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.nav__item > a:hover {
  opacity: 1;
}
.nav.collapsible--expanded .nav__toggler {
  opacity: 1;
}
@media screen and (min-width: 768px) {
  .nav__toggler {
    display: none;
  }
  .nav {
    flex-wrap: nowrap;
  }
  .nav__list {
    width: auto;
    flex-direction: row;
    max-height: 100%;
    opacity: 1;
  }
  .nav__item {
    margin: 0 1.5rem;
    padding: 0;
    font-size: 1.5rem;
  }
  .nav__logo > img {
    height: 80%;
  }
}
/*Hero*/
.hero__img {
  width: 100%;
}
.hero__heading {
  font-size: 8rem;
}
.hero__paragraph {
  font-size: 2rem;
  letter-spacing: 1px;
}
@media screen and (min-width: 768px) {
  .hero {
    padding: 0 3rem 5rem 3rem;
  }
  .hero__content {
    text-align: left;
    align-self: center;
  }
}
/*utility classes*/
.box--shadow {
  box-shadow: 0 0 40px 10px var(--box-shadow);
}
.container {
  max-width: 1140px;
  margin: 0 auto;
}
/* domain block*/
.domain {
  max-width: 700px;
}
.domain__prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 4rem);
  justify-items: center;
}
@media screen and (min-width: 1024px) {
  .domain__prices {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
  }
}
/* Plans*/
.plans {
  max-width: 500px;
}
.plans > .plan {
  margin-bottom: 8rem;
}
@media screen and (min-width: 1024px) {
  .plans {
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
  }
}
.feature {
  text-align: center;
  padding: 0;
}
.feature__heading {
  font-size: 3rem;
  font-weight: 600;
}
.feature__content {
  text-align: center;
  margin-bottom: 5rem;
}
.feature__header * {
  margin: 0;
  margin-bottom: 2rem;
}
.feature__header > :last-child {
  margin-bottom: 6rem;
}
.feature__grid {
  margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
  .feature__content {
    text-align: left;
  }
  .feature__grid:nth-of-type(even) .feature__content {
    order: 2;
  }
  .feature__grid {
    margin-bottom: 10rem;
  }
}
/*Showcase block*/
.showcase__heading {
  text-align: center;
}
.showcase__img {
  width: 100%;
  margin-bottom: 3rem;
}
.showcase__body {
  list-style-type: none;
}
.showcase__body > li {
  padding-bottom: 3rem;
}
@media screen and (min-width: 768px) {
  .showcase {
    grid-template-columns: 50% 50%;
  }
  .showcase__heading {
    margin-bottom: 5rem;
  }
  .showcase__img {
    width: 700px;
    justify-self: end;
  }
}
/*footer*/
.footer {
  background: #222;
  padding: 2rem;
}
.footer ul {
  list-style-type: none;
  padding-left: 0;
}
.footer li {
  margin-bottom: 1rem;
}
.footer .collapsible {
  border-bottom: 2px solid #333;
}
.footer__heading {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.footer__icon {
  width: 40px;
  height: 40px;
  padding: 0;
}
.footer__logo {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .footer__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    margin-top: 6rem;
  }
  .footer .collapsible {
    border: 0;
  }
  .footer .collapsible__chevron {
    display: none;
  }
  .footer .collapsible__content {
    opacity: 1;
    max-height: 100%;
  }
  .footer__logo {
    order: -1;
  }
  .footer__callout {
    position: relative;
    top: 3rem;
  }
}
