/* Product extension of TP MEDIA's native CSS system.
   DESIGN_VARIANCE 6 / MOTION_INTENSITY 4 / VISUAL_DENSITY 4.
   Existing semantic colors, self-hosted fonts and Phosphor icons are shared.
   Shape scale: surfaces 16px; store buttons 16px; icon buttons and arrows pill.
   Layers: preview ground 0, background screenshot 1, primary screenshot 2,
   sticky navigation 10, keyboard skip link 20. */
.product-page .container {
  width: min(1240px, calc(100% - 96px));
}
.product-page .icon-button {
  width: 44px;
  height: 44px;
}
.product-page .product-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 48px 64px;
}
.product-icon {
  border-radius: 16px;
  margin-bottom: 26px;
}
.product-intro h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -2.7px;
}
.product-intro h1 span {
  display: block;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.5;
  letter-spacing: -1.5px;
  color: var(--accent);
}
.product-intro > p {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 20px;
}
.product-stores {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.product-stores .store-button {
  padding: 13px 18px;
  gap: 12px;
  min-width: 0;
}
.product-stores .store-button:first-child {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.product-stores .store-button:first-child small {
  color: var(--accent-text);
}
.product-stores .store-button:first-child:hover {
  background: var(--accent-hover);
}
.product-stores .store-button > .icon:last-child {
  width: 16px;
  height: 16px;
}
.product-preview {
  min-height: 518px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-ground {
  position: absolute;
  inset: 18% 0 10%;
  border-radius: 50%;
  background: var(--tint);
  z-index: 0;
}
.product-preview img {
  height: 478px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 16px 40px var(--shadow);
}
.product-preview .preview-primary {
  position: relative;
  z-index: 2;
  transform: rotate(-5deg) translateX(-55px);
}
.product-preview .preview-secondary {
  position: absolute;
  z-index: 1;
  right: 22px;
  height: 425px;
  transform: rotate(9deg);
}
.product-features {
  border-top: 1px solid var(--border);
}
.product-heading {
  max-width: 640px;
  margin-bottom: 38px;
}
.product-page h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1.6px;
  line-height: 1.3;
  font-weight: 700;
}
.product-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 16px;
}
.feature-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.feature-mosaic article {
  border-radius: 16px;
}
.feature-main {
  grid-row: span 2;
  background: var(--tint);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.feature-copy > .icon {
  height: 36px;
  width: 36px;
  color: var(--accent);
  margin-bottom: 25px;
}
.feature-mosaic h3 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.4;
  font-weight: 700;
}
.feature-mosaic p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 16px;
}
.feature-main > img {
  max-width: 215px;
  justify-self: end;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow);
}
.product-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  min-height: 44px;
  margin-top: 22px;
}
.product-text-link .icon {
  width: 18px;
  height: 18px;
}
.feature-small {
  padding: 28px 34px;
  background: var(--surface);
}
.feature-small > .icon {
  color: var(--accent);
  margin-bottom: 16px;
  width: 27px;
  height: 27px;
}
.feature-export {
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.offline-section {
  background: var(--surface);
}
.offline-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
}
.harvest-photo {
  overflow: hidden;
  border-radius: 16px;
}
.harvest-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.offline-copy .eyebrow {
  display: block;
  margin-bottom: 22px;
}
.product-page .offline-copy h2 {
  font-size: clamp(36px, 4vw, 52px);
}
.offline-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-top: 20px;
  max-width: 425px;
}
.offline-note {
  display: flex;
  gap: 15px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.offline-note .icon {
  color: var(--accent);
  width: 25px;
  height: 25px;
}
.offline-note p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.product-gallery .screenshot-gallery {
  grid-auto-columns: 250px;
  gap: 24px;
}
.product-gallery .screenshot-carousel {
  margin-bottom: 0;
}
.product-gallery .screenshot-slide figcaption {
  font-size: 12px;
}
.product-gallery .carousel-source {
  font-size: 11px;
}
.product-gallery .carousel-source .icon {
  width: 13px;
  height: 13px;
}
.product-help {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  border-top: 1px solid var(--border);
}
.help-intro > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.help-intro .product-text-link {
  margin-top: 4px;
  font-size: 17px;
}
.product-faq details {
  border-bottom: 1px solid var(--border);
}
.product-faq summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  padding-block: 24px;
}
.product-faq summary::-webkit-details-marker {
  display: none;
}
.product-faq summary .icon {
  color: var(--accent);
  transform: rotate(90deg);
  width: 20px;
  height: 20px;
}
.product-faq details[open] summary .icon {
  transform: rotate(-90deg);
}
.product-faq details p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  padding-bottom: 24px;
  max-width: 560px;
}
.product-faq summary:focus-visible,
.screenshot-gallery:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.product-download {
  background: var(--tint);
}
.product-download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-download-inner img {
  border-radius: 16px;
  margin-bottom: 24px;
}
.product-download-inner p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.product-download .product-stores {
  margin: 0;
  justify-content: flex-end;
}
.product-page .site-nav {
  font-size: 12px;
  gap: 26px;
}
@media (max-width: 1279px) {
  .product-page .container {
    width: calc(100% - 64px);
  }
  .product-page .product-hero {
    gap: 32px;
  }
  .product-preview {
    min-height: 490px;
  }
  .product-preview img {
    height: 440px;
  }
  .product-preview .preview-secondary {
    height: 390px;
    right: 0;
  }
  .product-preview .preview-primary {
    transform: rotate(-5deg) translateX(-45px);
  }
  .product-stores .store-button {
    font-size: 15px;
    padding-inline: 14px;
    gap: 10px;
  }
  .product-stores .store-button > .icon:last-child {
    display: none;
  }
  .feature-main {
    padding: 28px;
    gap: 22px;
  }
  .feature-mosaic h3 {
    font-size: 22px;
  }
  .feature-small {
    padding: 24px;
  }
  .offline-layout,
  .product-help {
    gap: 60px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .product-intro h1 {
    font-size: 44px;
  }
  .product-intro h1 span {
    font-size: 25px;
    letter-spacing: -1px;
  }
  .product-stores {
    flex-direction: column;
    max-width: 245px;
    gap: 10px;
    margin-top: 22px;
  }
  .product-stores .store-button {
    min-height: 64px;
  }
  .product-preview {
    min-height: 470px;
  }
  .product-preview img {
    height: 380px;
  }
  .product-preview .preview-primary {
    transform: rotate(-5deg) translateX(-30px);
  }
  .product-preview .preview-secondary {
    height: 330px;
  }
  .feature-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-main > img {
    max-width: 160px;
    margin: auto;
  }
  .offline-layout {
    gap: 36px;
  }
  .harvest-photo img {
    aspect-ratio: 4 / 5;
  }
  .product-download .product-stores {
    margin-left: auto;
  }
}
/* All product sections collapse to one column below 768px. */
@media (max-width: 767px) {
  .product-page .container {
    width: calc(100% - 40px);
  }
  .product-page .product-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 32px 40px;
  }
  .product-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
  }
  .product-intro h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .product-intro h1 span {
    font-size: clamp(21px, 6vw, 32px);
    letter-spacing: -0.7px;
  }
  .product-intro > p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.8;
    max-width: 350px;
  }
  .product-stores {
    margin-top: 24px;
    gap: 10px;
  }
  .product-stores .store-button {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    min-height: 64px;
    gap: 10px;
  }
  .product-stores .store-button small {
    font-size: 9px;
  }
  .product-stores .store-button > .icon:first-child {
    width: 23px;
    height: 23px;
  }
  .product-preview {
    min-height: 440px;
    width: min(100%, 450px);
    margin: auto;
  }
  .product-preview img {
    height: 400px;
  }
  .product-preview .preview-primary {
    transform: rotate(-5deg) translateX(-37px);
  }
  .product-preview .preview-secondary {
    height: 355px;
    right: 15px;
  }
  .preview-ground {
    inset: 16% 0 8%;
  }
  .product-heading {
    margin-bottom: 26px;
  }
  .product-page h2 {
    font-size: 29px;
    letter-spacing: -1.1px;
  }
  .product-heading > p {
    font-size: 14px;
  }
  .feature-mosaic {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-main {
    grid-row: auto;
    grid-template-columns: 1fr 0.75fr;
    padding: 24px;
    gap: 16px;
  }
  .feature-mosaic h3 {
    font-size: 21px;
  }
  .feature-mosaic p {
    font-size: 13px;
    line-height: 1.8;
  }
  .feature-copy > .icon {
    margin-bottom: 18px;
  }
  .feature-main .product-text-link {
    font-size: 12px;
    gap: 8px;
  }
  .feature-small {
    padding: 26px;
  }
  .offline-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .offline-copy .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .product-page .offline-copy h2 {
    font-size: 38px;
  }
  .offline-copy > p {
    font-size: 14px;
  }
  .product-gallery .screenshot-gallery {
    grid-auto-columns: min(78%, 250px);
    gap: 18px;
  }
  .product-help {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-intro > p {
    margin-top: 20px;
  }
  .product-faq summary {
    font-size: 14px;
    padding-block: 22px;
    gap: 16px;
  }
  .product-faq details p {
    font-size: 13px;
  }
  .product-download-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-download .product-stores {
    justify-content: flex-start;
  }
  html:not(.js) .product-page .site-nav {
    font-size: 11px;
    gap: 8px;
  }
  html:not(.js) .product-page .nav-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  html:not(.js) .product-page .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
  }
}
@media (max-width: 374px) {
  .product-stores .store-button {
    padding-inline: 10px;
    gap: 8px;
    font-size: 12px;
  }
  .product-stores .store-button > .icon:first-child {
    width: 20px;
    height: 20px;
  }
  .product-preview {
    min-height: 370px;
  }
  .product-preview img {
    height: 335px;
  }
  .product-preview .preview-secondary {
    height: 295px;
    right: 5px;
  }
  .feature-main {
    grid-template-columns: 1fr;
  }
  .feature-main > img {
    max-width: 170px;
    margin: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .product-preview .preview-primary {
    animation: product-enter 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .product-preview .preview-secondary {
    animation: product-secondary-enter 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .product-stores .store-button,
  .product-text-link .icon,
  .product-faq summary .icon {
    transition:
      transform 220ms ease,
      background-color 220ms ease,
      color 220ms ease;
  }
  .product-stores .store-button:hover {
    transform: translateY(-2px);
  }
  .product-stores .store-button:active {
    transform: scale(0.98);
  }
  .product-text-link:hover .icon:last-child {
    transform: translateX(3px);
  }
  @keyframes product-enter {
    from {
      opacity: 0;
      translate: 0 22px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  @keyframes product-secondary-enter {
    from {
      opacity: 0;
      translate: -16px 12px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}
