/**
 * Product font details — Description + Information below type tester.
 * Lives inside .jt-product-test-layout__content (same width as tester column).
 */

.jt-product-font-details {
  --jt-surface-3: #242424;
  --jt-font-details-text-gutter: 104px;
  width: 100%;
  min-width: 0;
  margin: 0 0 56px;
}

.jt-product-font-details--standalone {
  padding: 0 var(--jt-product-shell-x, 30px);
  box-sizing: border-box;
}

.jt-product-font-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 540px);
  gap: 28px 32px;
  align-items: start;
}

.jt-product-font-details__grid--description-only {
  grid-template-columns: minmax(0, 1fr);
}

.jt-product-font-details__grid--info-only {
  grid-template-columns: minmax(400px, 540px);
}

.jt-product-font-details__description {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-right: var(--jt-font-details-text-gutter);
  box-sizing: border-box;
}

.jt-product-font-details__title {
  margin: 0 0 28px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--jt-text);
}

.jt-product-font-details__content {
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.65;
  color: var(--jt-muted);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.jt-product-font-details__content p {
  margin: 0 0 1.15em;
  max-width: 100%;
}

.jt-product-font-details__content p:last-child {
  margin-bottom: 0;
}

.jt-product-font-details__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jt-product-font-details__card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--jt-border);
  border-radius: var(--jt-radius);
  background: var(--jt-surface);
}

.jt-product-font-details__block {
  margin-bottom: 22px;
}

.jt-product-font-details__block:last-child {
  margin-bottom: 0;
}

.jt-product-font-details__block--formats {
  margin-bottom: 20px;
}

.jt-product-font-details__label {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--jt-text);
}

.jt-product-font-details__formats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jt-product-font-details__formats-head .jt-product-font-details__label {
  margin: 0;
  min-width: 0;
}

.jt-product-font-details__version {
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--jt-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.jt-product-font-details__formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.jt-product-font-details__format-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--jt-surface-3);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--jt-text);
  text-transform: uppercase;
}

.jt-product-font-details__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  padding: 18px 20px;
  border-radius: var(--jt-radius-sm);
  background: var(--jt-surface-2);
}

.jt-product-font-details__meta-item {
  min-width: 0;
}

.jt-product-font-details__meta-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--jt-muted);
}

.jt-product-font-details__meta-value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--jt-text);
}

.jt-product-font-details__languages {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--jt-muted);
}

.jt-product-font-details__card--tags {
  padding: 24px 26px 22px;
}

.jt-product-font-details__card--tags .jt-product-font-details__label {
  margin-bottom: 14px;
}

.jt-product-font-details__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jt-product-font-details__tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #111111;
  background: #111111;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
}

a.jt-product-font-details__tag:visited {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

a.jt-product-font-details__tag:hover {
  background: var(--jt-surface-2, #f5f5f5);
  border-color: var(--jt-border);
  color: var(--jt-text);
}

html.jt-light .jt-product-font-details,
body.jt-light .jt-product-font-details {
  --jt-surface-3: #f0f0f0;
}

@media (max-width: 1100px) {
  .jt-product-font-details__grid,
  .jt-product-font-details__grid--info-only {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .jt-product-font-details__description {
    padding-right: 72px;
  }

  .jt-product-test-layout .jt-product-font-details__description {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .jt-product-font-details {
    --jt-font-details-text-gutter: 0px;
  }

  .jt-product-font-details--standalone {
    padding: 0 var(--jt-product-shell-x, 20px);
  }

  .jt-product-font-details__description {
    padding-right: 0;
  }

  .jt-product-font-details__title {
    margin-bottom: 20px;
    font-size: 2.25rem;
  }

  .jt-product-font-details__card {
    padding: 22px 18px 20px;
  }

  .jt-product-font-details__formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jt-product-font-details__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ── Product stack: description + side info panel ── */

.jt-tp-product-font-details-stack .jt-product-font-details__grid,
.jt-tp-product-font-details-stack .jt-product-font-details__grid--description-only,
.jt-tp-product-font-details-stack .jt-product-font-details__grid--info-only {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 560px);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.jt-tp-product-font-details-stack .jt-product-font-details__description {
  padding-right: 0;
}

.jt-tp-product-main {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
  min-width: 0;
}

/* File specs bar */
.jt-tp-product-specs {
  margin: 0;
  padding: 22px clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
}

.jt-tp-product-specs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jt-tp-product-specs__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0 clamp(16px, 3vw, 28px);
}

.jt-tp-product-specs__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.jt-tp-product-specs__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: #ff5500;
}

.jt-tp-product-specs__icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

.jt-tp-product-specs__body {
  min-width: 0;
}

.jt-tp-product-specs__label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.48);
}

.jt-tp-product-specs__value {
  margin: 0;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.jt-tp-desc-feature__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 4.5vw, 52px);
  align-items: start;
  width: 100%;
  padding: clamp(32px, 5vw, 56px) clamp(36px, 5vw, 64px);
  border-radius: clamp(20px, 2.5vw, 28px);
  background: #000000;
  color: #ffffff;
  box-sizing: border-box;
}

.jt-tp-desc-feature__headline {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-align: left;
  color: #ffffff;
}

.jt-tp-desc-feature__body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.94);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.jt-tp-desc-feature__body p {
  margin: 0 0 1.5em;
  padding: 0;
  text-align: left;
}

.jt-tp-desc-feature__body p:last-child {
  margin-bottom: 0;
}

.jt-tp-product-side-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 20px);
  min-width: 0;
  width: 100%;
  position: sticky;
  top: calc(var(--jt-header-h, 72px) + 16px);
}

.jt-tp-product-side-panel__license {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.jt-tp-product-side-panel__license .jt-product-info-panel {
  position: static;
  top: auto;
  width: 100%;
  max-height: none;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__frame {
  max-height: none;
  overflow: visible;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__name {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.jt-tp-product-side-panel__license .jt-product-sale-flash {
  margin: 0;
  flex-shrink: 0;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__license-head {
  margin-bottom: 12px;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__section-lead {
  max-width: none;
  margin-bottom: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__sale-countdown {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  flex-shrink: 0;
}

.jt-tp-product-side-panel__license .jt-product-info-panel__license-heading {
  margin: 0 0 12px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: none;
}

.jt-tp-product-side-panel .jt-product-font-details__card {
  padding: 22px 20px 20px;
}

.jt-tp-product-side-panel .jt-product-font-details__meta {
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--jt-surface-2);
}

html.jt-light .jt-tp-product-side-panel .jt-product-font-details__format-tag,
body.jt-light .jt-tp-product-side-panel .jt-product-font-details__format-tag {
  background: #111111;
  color: #ffffff;
}

@media (max-width: 1100px) {
  .jt-tp-product-font-details-stack .jt-product-font-details__grid,
  .jt-tp-product-font-details-stack .jt-product-font-details__grid--description-only,
  .jt-tp-product-font-details-stack .jt-product-font-details__grid--info-only {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  }
}

@media (max-width: 900px) {
  .jt-tp-product-font-details-stack .jt-product-font-details__grid,
  .jt-tp-product-font-details-stack .jt-product-font-details__grid--description-only,
  .jt-tp-product-font-details-stack .jt-product-font-details__grid--info-only {
    grid-template-columns: 1fr;
  }

  .jt-tp-product-font-details-stack .jt-product-font-details__grid:has(.jt-tp-product-side-panel:only-child) {
    justify-items: stretch;
  }

  .jt-tp-product-side-panel {
    position: static;
  }
}

.jt-tp-product-font-details-stack .jt-product-font-details__grid:has(.jt-product-font-details__info:only-child) {
  grid-template-columns: minmax(400px, 560px);
  justify-content: end;
}

@media (max-width: 767px) {
  .jt-tp-product-specs__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .jt-tp-product-specs__item {
    padding: 0;
  }

  .jt-tp-product-specs__item:not(:last-child)::after {
    display: none;
  }

  .jt-tp-desc-feature__shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    border-radius: 20px;
  }

  .jt-tp-desc-feature__headline {
    font-size: clamp(1.875rem, 7.5vw, 2.75rem);
  }

  .jt-tp-product-side-panel .jt-product-font-details__meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
