/* Product download experience shared by Repo Typing and Repo Office. */
.download-page {
  --product-color: #198754;
  --product-dark: #11673f;
  --product-soft: #edf8f2;
  --product-border: #b9dfca;
  --product-rgb: 25, 135, 84;
  --brand-navy: #092139;
  --brand-blue: #1768bd;
  --brand-blue-deep: #0d4f9f;
  background: #f6f8fb;
  color: #243247;
}

.download-page.download-page-efficiency {
  --product-color: #e83e8c;
  --product-dark: #b82468;
  --product-soft: #fff0f7;
  --product-border: #f3bad4;
  --product-rgb: 232, 62, 140;
}

.download-page .main {
  background: #fff;
}

/* Full-width product strip directly beneath the main navigation. */
.download-page .download-product-hero {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(151, 226, 184, 0.26), transparent 35%),
    linear-gradient(105deg, #ccebd9 0%, #e6f6ed 52%, #b9e1ca 100%);
}

.download-page-efficiency .download-product-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(105deg, #f2bfd3 0%, #fae8f0 52%, #efbfd4 100%);
}

.download-page .download-product-hero > .container {
  position: relative;
  display: flex !important;
  align-items: center;
  width: calc(100% - 24px);
  max-width: none;
  min-height: 230px;
  margin: 0 auto;
  overflow: hidden;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.download-page-efficiency .download-product-hero > .container {
  background: transparent;
  box-shadow: none;
}

.download-hero-content {
  position: relative;
  z-index: 2;
  width: 47%;
  max-width: 640px;
  margin-left: 0;
}

.download-product-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-product-identity img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  filter: drop-shadow(0 13px 14px rgba(4, 34, 65, 0.3));
}

.download-title-kicker {
  display: block;
  margin-bottom: 7px;
  color: #126a40;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.download-page-efficiency .download-title-kicker {
  color: #8f2858;
}

.download-page .download-product-hero h1 {
  max-width: 580px;
  margin: 0;
  color: #103d2a;
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-shadow: none;
}

.download-page-efficiency .download-product-hero h1 {
  color: #5e2440;
  text-shadow: none;
}

.download-hero-interface {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  margin-left: 0;
  overflow: visible;
  opacity: 0.37;
  pointer-events: none;
  transform: none;
  transform-origin: initial;
  clip-path: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

.download-hero-interface::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 22%, rgba(18, 106, 64, 0.07) 100%);
  content: "";
}

.download-hero-interface img {
  position: absolute;
  right: -1%;
  top: 0;
  bottom: auto;
  width: 76%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.9) contrast(1.14);
  transform: perspective(1400px) rotateX(34deg) rotateZ(-2.25deg) scaleY(0.82);
  transform-origin: top right;
}

.download-page-efficiency .download-hero-interface {
  opacity: 0.35;
  mix-blend-mode: normal;
}

.download-page-efficiency .download-hero-interface::after {
  background: linear-gradient(90deg, transparent 22%, rgba(126, 16, 70, 0.035) 100%);
}

/* Download workspace */
.software-download-center.section {
  position: relative;
  margin-top: -1px;
  padding: 34px 0 72px;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0) 0%, rgba(246, 248, 251, 0.72) 105px, #f6f8fb 215px),
    linear-gradient(105deg, #ccebd9 0%, #e6f6ed 52%, #b9e1ca 100%);
}

.download-page-efficiency .software-download-center.section {
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0) 0%, rgba(246, 248, 251, 0.74) 105px, #f6f8fb 215px),
    linear-gradient(105deg, #f2bfd3 0%, #fae8f0 52%, #efbfd4 100%);
}

.download-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.download-catalog {
  min-width: 0;
}

.download-catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.download-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--product-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.download-catalog-header h2 {
  margin: 0;
  color: #13243d;
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.download-catalog-header p {
  max-width: 650px;
  margin: 8px 0 0;
  color: #526075;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.download-release-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--product-border);
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.download-option-grid {
  display: grid;
  gap: 16px;
}

.download-option-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 154px 124px;
  gap: 19px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 24px;
  border: 1px solid #dce4ec;
  border-left: 3px solid #a9bfd6;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 49, 77, 0.065);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.download-option-card.is-featured {
  min-height: 166px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-left-color: var(--product-color);
  background: linear-gradient(96deg, rgba(var(--product-rgb), 0.035) 0%, #fff 35%);
}

.download-option-card:hover {
  border-color: var(--product-border);
  border-left-color: var(--product-color);
  box-shadow: 0 15px 34px rgba(28, 49, 77, 0.11);
  transform: translateY(-2px);
}

.download-option-icon,
.download-side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--product-border);
  background: var(--product-soft);
  color: var(--product-color);
}

.download-option-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 28px;
}

.download-option-copy {
  min-width: 0;
}

.download-option-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.download-option-title h3 {
  margin: 0;
  color: #14243c;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.download-architecture {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--product-color);
  border-radius: 999px;
  background: var(--product-color);
  box-shadow: 0 7px 16px rgba(var(--product-rgb), 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.download-option-copy > p {
  margin: 6px 0 10px;
  color: #526075;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.download-option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.download-option-tags span {
  padding: 5px 8px;
  border: 1px solid var(--product-border);
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product-dark);
  font-size: 11px;
  font-weight: 750;
}

.download-option-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.download-option-meta div {
  padding: 3px 11px;
  border-left: 1px solid #e1e7ed;
}

.download-option-meta dt,
.download-option-meta dd {
  margin: 0;
}

.download-option-meta dt {
  margin-bottom: 3px;
  color: #798599;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.download-option-meta dd {
  color: #22324a;
  font-size: 13px;
  font-weight: 800;
}

.download-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--product-color);
  border-radius: 11px;
  background: var(--product-color);
  box-shadow: 0 9px 20px rgba(var(--product-rgb), 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.download-action:hover {
  border-color: var(--product-dark);
  background: var(--product-dark);
  box-shadow: 0 12px 25px rgba(var(--product-rgb), 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.download-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  padding: 18px 10px;
  border: 1px solid #dce4ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 49, 77, 0.045);
}

.download-trust-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-left: 1px solid #e1e7ed;
}

.download-trust-strip > div:first-child {
  border-left: 0;
}

.download-trust-strip i {
  color: var(--product-color);
  font-size: 23px;
}

.download-trust-strip span,
.download-trust-strip strong {
  display: block;
}

.download-trust-strip span {
  color: #748095;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.download-trust-strip strong {
  margin-bottom: 1px;
  color: #26364d;
  font-size: 11px;
  font-weight: 800;
}

/* Help column */
.download-help-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-side-card {
  padding: 22px;
  border: 1px solid #dce4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(28, 49, 77, 0.055);
}

.download-guide-card {
  border-top: 3px solid var(--product-color);
}

.download-side-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.download-side-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

.download-side-heading small,
.download-side-heading h3 {
  display: block;
  margin: 0;
}

.download-side-heading small {
  margin-bottom: 2px;
  color: var(--product-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-side-heading h3 {
  color: #16263e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.download-side-card > p {
  margin: 0 0 13px;
  color: #526075;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}

.download-guide-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 15px;
  padding-left: 21px;
  color: #3b4b61;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.download-guide-steps li::marker {
  color: var(--product-color);
  font-weight: 800;
}

.download-video-disclosure {
  border-top: 1px solid #e2e8ee;
  padding-top: 13px;
}

.download-video-disclosure summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: var(--product-soft);
  color: var(--product-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.download-video-disclosure summary::-webkit-details-marker {
  display: none;
}

.download-video-frame {
  overflow: hidden;
  margin-top: 11px;
  padding: 4px;
  border: 1px solid #dce4ec;
  border-radius: 11px;
  background: #fff;
}

.download-video-preview {
  margin-top: 14px;
  padding: 5px;
  border-color: var(--product-border);
  box-shadow: 0 10px 24px rgba(28, 49, 77, 0.1);
}

.download-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0d1725;
  object-fit: cover;
}

.download-support-card {
  border-color: var(--product-border);
  background: linear-gradient(145deg, var(--product-soft) 0%, #fff 70%);
}

.download-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.download-contact-list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--product-border);
  border-radius: 9px;
  background: #fff;
  color: var(--product-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.download-contact-list a:hover {
  border-color: var(--product-color);
  color: var(--product-color);
}

.download-latest-version {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--product-color);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.download-latest-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
  color: #4a586d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.download-latest-card li::marker {
  color: var(--product-color);
}

.download-action:focus-visible,
.download-contact-list a:focus-visible,
.download-video-disclosure summary:focus-visible {
  outline: 3px solid rgba(var(--product-rgb), 0.24);
  outline-offset: 3px;
}

#software-downloads-legacy,
#courses-events[hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  .download-page .download-product-hero > .container {
    min-height: 220px;
    width: calc(100% - 20px);
  }

  .download-hero-content {
    width: 49%;
    margin-left: 0;
  }

  .download-product-identity img {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .download-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .download-option-card {
    grid-template-columns: 56px minmax(0, 1fr) 124px;
  }

  .download-option-meta {
    grid-row: 2;
    grid-column: 2;
    width: 220px;
  }

  .download-action {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}

@media (max-width: 991px) {
  .download-page .download-product-hero > .container {
    min-height: 210px;
    width: calc(100% - 16px);
  }

  .download-hero-content {
    width: 56%;
    margin-left: 0;
  }

  .download-page .download-hero-interface,
  .download-page-efficiency .download-hero-interface {
    width: 62%;
    height: 100%;
    margin-left: 0;
    opacity: 0.28;
  }

  .download-workspace {
    grid-template-columns: 1fr;
  }

  .download-help-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .download-page .download-product-hero {
    padding: 0;
  }

  .download-page .download-product-hero > .container {
    display: block !important;
    width: calc(100% - 16px);
    min-height: 0;
    padding: 26px 0 24px;
    border-radius: 0;
  }

  .download-hero-content {
    width: 100%;
    margin-left: 0;
  }

  .download-product-identity {
    gap: 14px;
  }

  .download-product-identity img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .download-page .download-product-hero h1 {
    font-size: clamp(29px, 7vw, 38px);
  }

  .download-hero-interface {
    position: absolute;
    inset: 0 0 0 auto;
    width: 72%;
    height: 100%;
    opacity: 0.11;
    margin-left: 0;
    transform: none;
    transform-origin: initial;
    clip-path: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  }

  .download-hero-interface img {
    right: -2%;
    top: 0;
    bottom: auto;
    width: 90%;
    height: auto;
    transform: perspective(1100px) rotateX(30deg) rotateZ(-1.75deg) scaleY(0.86);
    transform-origin: top right;
  }

  .download-page .download-hero-interface,
  .download-page-efficiency .download-hero-interface {
    opacity: 0.2;
  }

  .software-download-center.section {
    padding-top: 28px;
  }

  .download-catalog-header {
    flex-direction: column;
  }

  .download-option-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .download-option-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 23px;
  }

  .download-option-meta {
    grid-row: auto;
    grid-column: 1 / -1;
    width: 100%;
  }

  .download-option-meta div:first-child {
    border-left: 0;
  }

  .download-action {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .download-trust-strip {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .download-trust-strip > div {
    justify-content: flex-start;
    border-left: 0;
  }

  .download-help-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .download-page .download-product-hero {
    padding: 0;
  }

  .download-page .download-product-hero > .container {
    width: calc(100% - 12px);
    padding: 22px 0 21px;
  }

  .download-product-identity {
    align-items: flex-start;
  }

  .download-product-identity img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .download-title-kicker {
    font-size: 10px;
  }

  .software-download-center.section {
    padding-right: 12px;
    padding-bottom: 52px;
    padding-left: 12px;
  }

  .software-download-center > .container {
    padding-right: 0;
    padding-left: 0;
  }

  .download-option-card,
  .download-side-card {
    padding: 18px;
    border-radius: 14px;
  }

  .download-option-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .download-option-title h3 {
    font-size: 19px;
  }

  .download-contact-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-option-card,
  .download-action {
    transition: none;
  }
}
