/* Product selection shares the SolThings visual language. */
.portal .nav-row
{
  min-height: 82px;
}
.portal-brand
{
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.7px;
}
.portal-brand span
{
  color: #7a8d7c;
  padding: 0 5px;
  font-weight: 400;
}
.portal-title
{
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}
.product-grid
{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.product-card
{
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-heading
{
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-heading img
{
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.product-heading h2
{
  font-size: 27px;
  letter-spacing: -.8px;
}
.product-heading span
{
  color: var(--muted);
  font-size: 13px;
}
.product-heading .product-number
{
  margin-left: auto;
  align-self: flex-start;
  color: #96a895;
  font-size: 14px;
}
.product-card h3
{
  font-size: 21px;
  margin-top: 26px;
}
.product-description
{
  color: var(--muted);
  margin-top: 10px;
  min-height: 0;
}
.product-preview
{
  display: block;
  padding: 16px;
  margin-top: 12px;
  background: #eef3e9;
  border: 1px solid var(--line);
  border-radius: 5px;
  /* Preserve the complete screenshot in the flex card. */
  flex: 0 0 auto;
}
.product-preview img
{
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid #d0d9ce;
}
.product-card ul
{
  padding: 22px 0 24px;
  margin: 0;
  list-style: none;
  font-size: 14px;
}
.product-card li
{
  padding: 5px 0;
}
.product-card li::before
{
  content: "✓";
  color: #56735e;
  margin-right: 12px;
}
.product-bottom
{
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.product-bottom .button
{
  gap: 26px;
  white-space: nowrap;
}
.product-bottom small
{
  font-size: 12px;
  color: var(--muted);
}
.portal-footer
{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px)
{
  .portal .wrap
  {
    width: calc(100% - 36px);
  }
  .portal .nav-row
  {
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .portal-brand
  {
    font-size: 18px;
  }
  .product-grid
  {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-card
  {
    padding: 24px;
  }
  .product-description
  {
    min-height: 0;
  }
}

/* Keep the free license visible beside the MThings product name. */
.product-heading h2
{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.product-heading .free-badge
{
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid #bbd3bc;
  border-radius: 4px;
  background: #e8f2e5;
  color: #174c3c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  white-space: nowrap;
}

/* Reuse the product language controls for the shared entry page. */
.portal .lang-switch
{
  gap: 4px;
  flex-shrink: 0;
  border-radius: 5px;
  border-color: var(--line);
  box-shadow: none;
}
.portal .lang-button.is-active
{
  background: var(--green);
  box-shadow: none;
}
.portal .lang-button:focus-visible
{
  outline: 3px solid #b17827;
  outline-offset: 3px;
}
@media (max-width: 720px)
{
  .portal .lang-switch
  {
    padding: 3px;
    gap: 3px;
  }
}

/* Shared rows align corresponding content across the two product cards. */
@media (min-width: 761px)
{
  .product-grid
  {
    column-gap: 28px;
    row-gap: 0;
  }
  .product-card
  {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .product-preview
  {
    position: relative;
    aspect-ratio: 1.65;
    min-width: 0;
  }
  .product-preview img
  {
    position: absolute;
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    /* Stretch to the common height without cropping either screenshot. */
    object-fit: fill;
  }
  .product-bottom
  {
    margin-top: 0;
    align-content: start;
  }
}
