/* Uniframe product page.
   Builds on /products/css/ContactManager.css (shared Mac product layout) and
   only adds the accent colours and the few blocks that page does not have. */

body[data-product-accent="uniframe"] {
  --brand: #6b3df5;
  --brand-2: #17b4d8;
  --brand-3: #8f6bff;
  --uf-gold: #e2b14a;
}

body[data-product-accent="uniframe"]::before {
  background:
    radial-gradient(circle at 12% 4%, rgba(107, 61, 245, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(23, 180, 216, 0.14), transparent 26rem),
    radial-gradient(circle at 50% 0%, rgba(143, 107, 255, 0.10), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26rem);
}

body[data-product-accent="uniframe"] .arthouse-product-download,
body[data-product-accent="uniframe"] .arthouse-product-download.arthouse-button-primary,
body[data-product-accent="uniframe"] .button-primary {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  box-shadow: 0 12px 28px rgba(107, 61, 245, 0.32) !important;
}

body[data-product-accent="uniframe"] .arthouse-product-download:hover,
body[data-product-accent="uniframe"] .button-primary:hover {
  background: linear-gradient(135deg, var(--brand-3), var(--brand)) !important;
}

body[data-product-accent="uniframe"] .eyebrow::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(107, 61, 245, 0.16);
}

body[data-product-accent="uniframe"] .eyebrow,
body[data-product-accent="uniframe"] .kicker {
  color: var(--brand);
}

html[data-theme="dark"] body[data-product-accent="uniframe"] .eyebrow,
html[data-theme="dark"] body[data-product-accent="uniframe"] .kicker {
  color: var(--brand-3);
}

/* Store button placeholder until the Mac App Store link exists */
.uf-store-pending {
  cursor: default;
}

/* Screenshots are transparent PNG/WebP window captures. The shared product
   stylesheet gives every img a surface colour, so clear it on this page. */
body[data-product-accent="uniframe"] main img {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain;
}

.uf-hero-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
}

body[data-product-accent="uniframe"] .uf-hero .store-note {
  color: var(--muted);
}

/* At a glance: plain figures, no cards */
.uf-facts {
  padding: 8px 0 72px;
}

.uf-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.uf-facts-grid > div {
  padding: 26px 12px;
  text-align: center;
}

.uf-facts-grid > div + div {
  border-left: 1px solid var(--line);
}

.uf-facts-grid dt {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.uf-facts-grid dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Feature rows: copy beside a screenshot, alternating sides */
.uf-row {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.uf-row.is-alt {
  background: var(--bg-alt);
}

.uf-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.uf-row-grid.is-reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.uf-row-grid.is-reverse .uf-row-copy {
  order: 2;
  justify-self: end;
}

.uf-row-copy {
  max-width: 460px;
}

.uf-row-copy h2,
.uf-section-head h2,
.uf-cta h2 {
  margin: 10px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.uf-row-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.uf-row-media {
  margin: 0;
}

.uf-row-media img {
  width: 100%;
  height: auto;
}

.uf-checks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.uf-checks li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  color: var(--text);
}

.uf-checks i {
  font-size: 0.8rem;
  color: var(--brand);
}

.uf-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 18px !important;
  font-size: 0.9rem;
}

.uf-note i {
  color: var(--brand);
}

/* Built for real work */
.uf-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.uf-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.uf-tool img {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.uf-tool h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.uf-tool p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.uf-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.94rem;
  color: var(--muted);
}

.uf-more i {
  margin-right: 8px;
  color: var(--brand);
}

/* Closing call to action */
.uf-cta {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.uf-cta-media {
  max-width: 820px;
  margin: 0 auto 36px;
}

.uf-cta-media img {
  width: 100%;
  height: auto;
}

.uf-cta p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.uf-cta .uf-cta-note {
  margin: 16px auto 0;
  font-size: 0.86rem;
}

@media (max-width: 991px) {
  .uf-row-grid,
  .uf-row-grid.is-reverse {
    grid-template-columns: 1fr;
  }

  .uf-row-grid.is-reverse .uf-row-copy {
    order: 0;
    justify-self: start;
  }

  .uf-row-copy {
    max-width: 640px;
  }

  .uf-tools {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .uf-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uf-facts-grid > div:nth-child(3) {
    border-left: 0;
  }

  .uf-facts-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .uf-more {
    flex-direction: column;
    align-items: flex-start;
  }
}
