/*----------------------------------------------------------------------------
  Coderealm — hand-written additions.

  This file is NOT compiled from assets/scss. It is loaded last, on purpose:
  everything here either belongs to the new vector brand or to the products
  section, and keeping it out of style.css means a `sass` rebuild of the old
  theme cannot quietly delete it.
----------------------------------------------------------------------------*/

/*--  Quicksand  ----------------------------------------------------------*/
/* Only the Evento mockup in the products section uses this. It is the app's own
   typeface, and it is the difference between a screenshot of the product and a
   drawing of it. Three weights, loaded lazily by font-display: swap. */
@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand/Quicksand-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand/Quicksand-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/*--  Brand logo  ---------------------------------------------------------*/
/* The vector lockup is far wider than the old raster was tall, so the header
   spacing that used to come from the image's own bulk is set explicitly. */
.brand-logo {
  width: 252px;
  height: auto;
  margin-right: 90px;
  display: block;
}

.brand-logo--footer {
  width: 196px;
  margin-right: 0;
}

.sidebar-menu .brand-logo {
  width: 220px;
  margin-right: 0;
  margin-bottom: 10px;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .brand-logo {
    width: 210px;
    margin-right: 40px;
  }
}

@media (max-width: 991px) {
  .brand-logo {
    width: 200px;
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 168px;
  }
}

/*--  Products  -----------------------------------------------------------*/
/* The studio site is a dark, illustration-led theme. The products section is
   deliberately quieter than the rest of it: one card, real product UI, and no
   competing artwork — the thing being sold is the screen. */
.products-area {
  padding: 90px 0 30px;
  position: relative;
}

.products-area__head {
  max-width: 780px;
  margin-bottom: 46px;
}

.products-area__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Gilroy-Bold';
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e99a6;
  margin-bottom: 16px;
}

.products-area__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: #455a64;
}

.products-area__head h2 {
  margin-bottom: 18px;
  /* The theme's h2 is sized for a short heading; this one is a sentence, and at
     the theme's mobile size it runs to five lines. */
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.16;
}

.products-area__head p {
  color: #b9c2cb;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 48px 52px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(69, 90, 100, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.product-card__logo {
  display: block;
  margin-bottom: 22px;
}

.product-card__body h3 {
  font-family: 'Gilroy-Bold';
  font-size: 30px;
  line-height: 1.24;
  margin-bottom: 16px;
}

.product-card__body > p {
  color: #b9c2cb;
  margin-bottom: 26px;
}

.product-card__points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}

.product-card__points li {
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.product-card__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #455a64;
}

.product-card__points b {
  font-family: 'Gilroy-Bold';
  display: block;
  font-size: 16px;
}

.product-card__points span {
  font-size: 15px;
  color: #94a0ab;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.product-card__link {
  font-family: 'Gilroy-Bold';
  color: #cfd7de;
  transition: color 0.2s;
}

.product-card__link:hover {
  color: #fff;
}

/*--  The live Evento mockup  --------------------------------------------*/
/* Laid out at true device points and scaled once, so the numbers in the markup
   are the numbers the app uses. Sits on its own Z plane inside a perspective
   so the card has depth without an image. */
.product-card__art {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.ev-phone {
  --dw: 375px;
  --dh: 812px;
  --k: 0.62;
  --bezel: 7px;
  /* Frame = scaled screen + bezel. Sizing it to the scaled screen alone leaves
     the app wider than its own glass and clips the right of every row. */
  width: calc(var(--dw) * var(--k) + var(--bezel) * 2);
  height: calc(var(--dh) * var(--k) + var(--bezel) * 2);
  padding: var(--bezel);
  border-radius: calc(54px * var(--k) + var(--bezel));
  background: linear-gradient(150deg, #3a3a45, #101014 42%, #26262f);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.16) inset, 0 44px 80px -38px rgba(0, 0, 0, 0.95);
  transform: rotateY(-14deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ev-phone:hover {
  transform: rotateY(-4deg) rotateX(1deg);
}

.ev-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: calc(54px * var(--k));
  overflow: hidden;
  background: #fff;
}

.ev-app {
  width: var(--dw);
  height: var(--dh);
  transform: scale(var(--k));
  transform-origin: 0 0;
  background: #f6f6f8;
  color: #1c1c22;
  font-family: 'Quicksand', 'Gilroy-Medium', sans-serif;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
}

.ev-app * {
  box-sizing: border-box;
}

.ev-app__status {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 26px 0;
  font-weight: 700;
  background: #fff;
  position: relative;
}

.ev-app__island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 112px;
  height: 32px;
  border-radius: 999px;
  background: #000;
}

.ev-app__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 14px;
  background: #fff;
}

.ev-app__bar h4 {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  margin: 0;
  color: #1c1c22;
}

.ev-app__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4d4d58, #1c1c22);
}

.ev-app__body {
  padding: 4px 20px;
}

.ev-app__greeting {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.ev-app__body h5 {
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  color: #1c1c22;
  margin: 20px 0 10px;
}

.ev-app__card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px -12px rgba(20, 20, 26, 0.45);
}

.ev-app__card--rows {
  padding: 6px 14px;
}

.ev-app__today {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ev-app__date {
  width: 52px;
  height: 56px;
  border-radius: 12px;
  background: #28282b;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ev-app__date span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ev-app__date b {
  font-size: 21px;
  font-weight: 700;
}

.ev-app__today b {
  font-size: 16px;
  display: block;
}

.ev-app__today small {
  display: block;
  font-size: 12.5px;
  color: #6b6b78;
  font-weight: 600;
}

.ev-app__today em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 4px;
}

.ev-app__cta {
  background: #28282b;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  margin-top: 12px;
}

/* Severity: filled surface for critical, a 3px rule for warning, nothing for
   info. Same encoding the app uses. */
.ev-app__attn {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px -12px rgba(20, 20, 26, 0.4);
}

.ev-app__attn--critical {
  background: #fdecec;
  box-shadow: none;
  color: #b00505;
}

.ev-app__attn--warning {
  border-left: 3px solid #ffc107;
}

.ev-app__attn b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ev-app__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #ececed;
}

.ev-app__row:last-child {
  border-bottom: 0;
}

.ev-app__row > i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 17px;
  flex: none;
}

.ev-app__row > span {
  flex: 1;
  min-width: 0;
}

.ev-app__row b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.ev-app__row small {
  font-size: 12.5px;
  color: #6b6b78;
  font-weight: 500;
}

.ev-app__pill {
  font-style: normal;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ev-app__pill--ok {
  background: #e9f7ee;
  color: #157347;
}

.ev-app__pill--info {
  background: #e8f2fe;
  color: #0b5fbf;
}

.ev-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 13px;
  background: rgba(18, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.95);
  font-family: 'Gilroy-Medium';
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.ev-chip b {
  font-family: 'Gilroy-Bold';
}

.ev-chip--a {
  top: 54px;
  right: -6px;
}

.ev-chip--b {
  bottom: 76px;
  left: -10px;
}

.ev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.ev-dot--ok {
  background: #4ade80;
}

.ev-dot--warn {
  background: #fbbf24;
}

/*--  In the forge  -------------------------------------------------------*/
.product-next {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.product-next__tag {
  font-family: 'Gilroy-Bold';
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8e99a6;
  flex: none;
}

.product-next p {
  margin: 0;
  color: #b9c2cb;
}

.product-next a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 8px;
  }

  .product-card__art {
    order: -1;
    margin-bottom: 26px;
  }

  .ev-phone {
    --k: 0.54;
    transform: none;
  }

  .ev-chip--a {
    right: -14px;
  }
}

@media (max-width: 574px) {
  .products-area {
    padding-top: 60px;
  }

  .product-card__body h3 {
    font-size: 24px;
  }

  .ev-phone {
    --k: 0.46;
  }

  /* Floating chips need room the phone no longer leaves them. */
  .ev-chip {
    display: none;
  }
}
