/*
  Pricing cards — faithful replica of the OLMO Tailwind demo card design
  (https://dsathemes.com/html/olmo_tlwd/files/pricing.html) for the
  Bootstrap-based SharpOS site. Values taken from the demo's compiled CSS:
    heading #2f353e · blue #0195ff · gray-300 #d1d5dc · gray-500 #6a7282
    green-600 #00a63e · radius-xl 12px · radius-lg 8px
    shadow-md @ gray-300/50 · breakpoints xs 414 / sm 576 / md 768 / lg 992 / xl 1200
*/

/* Check icon from the demo's flaticon build (glyph f160 = flaticon-check-1),
   loaded under an aliased family so the site's own "flaticon" font is untouched. */
@font-face {
  font-family: "flaticon-tlwd";
  src: url("../fonts/flaticon-tlwd.woff2") format("woff2"),
       url("../fonts/flaticon-tlwd.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/*------------------------------------------*/
/*  Card grid (demo: grid-cols-1 md:grid-cols-2 lg:grid-cols-3)
/*------------------------------------------*/

.tlwd-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 28px;              /* max-md:gap-y-7 */
  align-items: start;
}

@media (min-width: 768px) {   /* md */
  .tlwd-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;                /* md:gap-6 */
  }
}

@media (min-width: 768px) and (max-width: 991.98px) { /* md:max-lg */
  .tlwd-pricing-grid { align-items: stretch; }
}

@media (min-width: 992px) {   /* lg */
  .tlwd-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;         /* lg:gap-x-5 */
    align-items: start;
  }
}

@media (min-width: 1200px) {  /* xl */
  .tlwd-pricing-grid { column-gap: 32px; } /* xl:gap-x-8 */
}

/*------------------------------------------*/
/*  Card (demo: bg-white shadow-md shadow-300/50 rounded-xl p-8 lg:max-xl:p-7)
/*------------------------------------------*/

.tlwd-pricing-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 32px;
  color: #6a7282;             /* text-gray-500 */
  box-shadow: 0 4px 6px -1px rgba(209, 213, 220, .5),
              0 2px 4px -2px rgba(209, 213, 220, .5);
}

@media (min-width: 992px) and (max-width: 1199.98px) { /* lg:max-xl */
  .tlwd-pricing-card { padding: 28px; }
}

/*------------------------------------------*/
/*  Card header (demo: pricing-table-header border-b border-gray-300 mb-6.5)
/*------------------------------------------*/

.tlwd-card-header {
  position: relative;
  border-bottom: 1px solid #d1d5dc;
  margin-bottom: 26px;
}

/* Plan title (demo: span.font-main text-21px sm:text-22px lg:max-xl:text-21px) */
.tlwd-plan-title {
  display: block;
  color: #2f353e;
  font-weight: 500;
  font-size: 21px;
  line-height: 1;
  margin-bottom: 24px;        /* mb-6 */
}

@media (min-width: 576px) {   /* sm */
  .tlwd-plan-title { font-size: 22px; margin-bottom: 28px; } /* sm:mb-7 */
}

@media (min-width: 992px) and (max-width: 1199.98px) { /* lg:max-xl */
  .tlwd-plan-title { font-size: 21px; }
}

/*------------------------------------------*/
/*  Price (demo: .price spans, currency + amount + periodicity)
/*------------------------------------------*/

.tlwd-price span {
  font-family: inherit;       /* demo: var(--font-main) = Rubik, the site body font */
  line-height: 1;
}

.tlwd-price-amount {
  color: #2f353e;
  font-size: 52px;
}

.tlwd-currency {
  color: #2f353e;
  font-size: 36px;
  position: relative;
  bottom: 5px;
}

@media (min-width: 576px) and (max-width: 767.98px) { /* sm:max-md */
  .tlwd-price-amount { font-size: 58px; }
  .tlwd-currency { font-size: 44px; }
}

@media (min-width: 1200px) {  /* xl */
  .tlwd-price-amount { font-size: 62px; }
  .tlwd-currency { font-size: 46px; }
}

/* HT subtotal + plan description (demo: p text-17px lg:text-base xl:text-18px pt-4 pb-5) */
.tlwd-price-note,
.tlwd-plan-desc {
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;          /* pt-4 */
  padding-bottom: 20px;       /* pb-5 */
}

.tlwd-price-note { padding-bottom: 0; }
.tlwd-plan-desc { padding-top: 8px; }

@media (min-width: 992px) {   /* lg */
  .tlwd-price-note,
  .tlwd-plan-desc { font-size: 16px; }
}

@media (min-width: 1200px) {  /* xl */
  .tlwd-price-note,
  .tlwd-plan-desc { font-size: 18px; }
}

/*------------------------------------------*/
/*  Features (demo: ul text-17px xs:text-18px lg:max-xl:text-base space-y-3 px-2)
/*------------------------------------------*/

.tlwd-features {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  font-size: 17px;
  line-height: 1.5;
}

.tlwd-features li + li { margin-top: 12px; } /* space-y-3 */

@media (min-width: 414px) {   /* xs */
  .tlwd-features { font-size: 18px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) { /* lg:max-xl */
  .tlwd-features { font-size: 16px; }
}

.tlwd-features .tlwd-includes strong {
  color: #2f353e;
  font-weight: 500;
}

/* Check icon (demo: flaticon-check-1 text-14px mr-2 text-green-600) */
.tlwd-check {
  font-size: 14px;
  margin-inline-end: 8px;
  color: #00a63e;
}

.tlwd-check:before {
  font-family: "flaticon-tlwd" !important;
  content: "\f160";
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*------------------------------------------*/
/*  Buttons (demo: btn w-full rounded-lg mt-7 · btn-tra-black / btn-blue, hover:btn-black)
/*------------------------------------------*/

.tlwd-btn {
  display: block;
  width: 100%;
  margin-top: 28px;           /* mt-7 */
  text-align: center;
  font-size: 18px;            /* 1.125rem */
  font-weight: 500;
  line-height: 1;
  padding: 16px 22px;         /* 1rem 1.375rem */
  border: 2px solid;
  border-radius: 8px;
  text-decoration: none;
  transition: all 350ms ease-in-out;
}

.tlwd-btn:focus { box-shadow: none; outline: none; }

.tlwd-btn-tra-black {
  background-color: transparent;
  border-color: #000;
  color: #000;
}

.tlwd-btn-tra-black:hover,
.tlwd-btn-tra-black:focus {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.tlwd-btn-blue {
  background-color: #0195ff;
  border-color: #0195ff;
  color: #fff;
}

.tlwd-btn-blue:hover,
.tlwd-btn-blue:focus {
  background-color: #000;
  border-color: #000;
  color: #fff;
}
