/* Screenshot galleries, product-card previews, and About photo */

.product-card:has(.card-preview) {
  padding-top: 0;
}
.product-card:has(.card-preview) .status-badge {
  margin-top: 18px;
}
.product-card .card-preview {
  width: calc(100% + 56px);
  margin: 0 -28px 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  background: var(--mist);
  max-height: 220px;
}
.product-card .card-preview img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  background: #E5E7EB;
}
.product-card .card-preview-phone img {
  object-position: top center;
  transform: scale(1.02);
}
.product-card .card-preview-icon {
  max-height: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  padding: 22px 22px 0;
  background: linear-gradient(180deg, #E8F0DC, #F4F7F0);
  height: 180px;
}
.product-card .card-preview-icon img.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}
.product-card .card-preview-icon img.card-phone {
  width: auto;
  height: 168px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 8px 20px rgba(31,41,55,.18);
  object-fit: cover;
  object-position: top center;
}

.person .photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--mist);
  margin: 0;
}
.person .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .person .photo { max-width: 280px; }
}

.shot-gallery {
  display: grid;
  gap: 36px 28px;
}
.shot-gallery.desktop {
  grid-template-columns: 1fr;
}
.shot-gallery.desktop.two {
  grid-template-columns: 1fr 1fr;
}
.shot-gallery.phones {
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 28px 18px;
}
.shot-gallery figure {
  margin: 0;
}
.shot-gallery figcaption {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.45;
}
.shot-desktop {
  background: var(--navy);
  border-radius: 18px 18px 10px 10px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(17,24,39,.5);
}
.shot-desktop img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #E5E7EB;
}
.shot-desktop-base {
  height: 14px;
  margin: 0 -5%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, #CDD3DA, #9AA3AE);
}
@media (max-width: 900px) {
  .shot-gallery.desktop.two { grid-template-columns: 1fr; }
  .shot-gallery.phones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shot-gallery.phones { grid-template-columns: 1fr; }
  .shot-gallery.phones .device-phone { width: 240px; }
}

.support-cta-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(31,41,55,.04);
}
.support-cta-panel p { margin: 0 0 18px; color: var(--text-2); }
.support-cta-panel .btn { margin-top: 8px; }

/* Home hero background video */
.lawn {
  background: var(--leaf);
}
.lawn-media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("/assets/video/hero-poster.jpg") center / cover no-repeat;
}
.lawn-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lawn::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(245,184,46,.20), transparent 62%),
    repeating-linear-gradient(98deg, rgba(62,107,26,0.22) 0 140px, rgba(47,82,19,0.06) 140px 280px),
    rgba(62, 107, 26, 0.78);
}
.lawn::after {
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .lawn-media video { display: none !important; }
}


/* Reusable muted section background video (closer CTA bands).
   Overlay, contrast and readability match the home hero. */
.section-video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.closer.has-video {
  background: var(--leaf);
}
.closer.has-video::before {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(245,184,46,.20), transparent 62%),
    repeating-linear-gradient(98deg, rgba(62,107,26,0.12) 0 140px, rgba(47,82,19,0.06) 140px 280px),
    rgba(62, 107, 26, 0.55);
}
.closer.has-video h2, .closer.has-video p { text-shadow: 0 2px 14px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35); }
.closer.has-video .container {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .section-video video { display: none !important; }
}


/* App Store badge — official black US English artwork, unmodified.
   Height is Apple's 40px onscreen minimum. Padding is the required
   clear space (one-quarter of badge height = 10px). Do not scale
   unevenly, recolor, or animate the badge. */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.app-store-badge img {
  display: block;
  height: 40px;
  width: auto;
}
.app-store-badge:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 8px;
}

.appstore-band {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding: 36px 0;
  text-align: center;
}
.appstore-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.appstore-band-label {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.appstore-inline { text-align: left; }
.appstore-inline .app-store-badge { margin-left: -10px; } /* optical: padding is clear space, keep badge aligned with text */

.store-buttons { align-items: center; }
.store-buttons .app-store-badge { margin: 0; }

.product-card .product-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  flex: 1 1 auto;
}
.product-card:has(.product-card-link) { cursor: default; }
.product-card:has(.product-card-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(31,41,55,.08);
  border-color: var(--navy);
}
.product-card .app-store-badge { margin: 4px 0 0 -10px; }

/* ==========================================================================
   LandscapePro theme and iPad gallery
   Applied only on body.lp-theme (the /landscapepro/ pages).
   Brand colors from the app:
     BrandGreen     #008F59  iOS Color(red: 0.0, green: 0.56, blue: 0.35)
                     and Android Color.kt / default brandColorHex
     BrandDarkGreen #00663F  header gradient bottom (Color.kt)
     BrandDeepGreen #004D2C  header gradient top (Color.kt)
     Tint           #B7F0D4  Material primaryContainer (Theme.kt)
   AccentColor.colorset in the iOS asset catalog is empty (system default),
   so the Swift/Kotlin brand green is the source of truth.
   Link and button colors use #00663F / #004D2C to meet WCAG AA
   (white on #00663F is 7.07:1; #00663F on white is 7.07:1).
   #008F59 is reserved for large accents; 4.14:1 on white is short of AA
   for small body text.
   Header and footer keep Acre & Pixel greens so site chrome stays consistent.
   ========================================================================== */

body.lp-theme {
  --lp-green: #008F59;
  --lp-green-dark: #00663F;
  --lp-green-deep: #004D2C;
  --lp-green-tint: #B7F0D4;
  --leaf: #00663F;
  --leaf-deep: #004D2C;
  --turf: #008F59;
  --sprout: #B7F0D4;
  --mist: #E8F3EE;
}

body.lp-theme .site-header,
body.lp-theme .site-footer {
  --leaf: #3E6B1A;
  --leaf-deep: #2F5213;
  --lime: #8BC34A;
  --sprout: #E3F0D3;
  --turf: #457521;
  --mist: #EFF2EA;
}

body.lp-theme .btn-primary {
  background: var(--lp-green-dark);
  color: #fff;
}
body.lp-theme .btn-primary:hover {
  background: var(--lp-green-deep);
  color: #fff;
}
body.lp-theme .site-header .btn-primary,
body.lp-theme .site-footer .btn-primary {
  background: var(--lime);
  color: var(--navy);
}
body.lp-theme .site-header .btn-primary:hover,
body.lp-theme .site-footer .btn-primary:hover {
  background: #9CCE60;
  color: var(--navy);
}

body.lp-theme .page-hero {
  background: linear-gradient(180deg, #D8F0E4 0%, #F4FBF7 45%, #fff 100%);
}
body.lp-theme .kicker { color: var(--lp-green-dark); }
body.lp-theme .status-badge {
  background: var(--lp-green-tint);
  color: var(--lp-green-deep);
}
body.lp-theme :focus-visible { outline-color: var(--lp-green-dark); }
body.lp-theme .closer {
  background: repeating-linear-gradient(98deg, var(--lp-green-deep) 0 140px, var(--lp-green-dark) 140px 280px);
}
/* White button on the dark closer — #00663F on the stripe failed contrast. */
body.lp-theme .closer .btn-primary {
  background: #fff;
  color: var(--lp-green-deep);
}
body.lp-theme .closer .btn-primary:hover {
  background: var(--lp-green-tint);
  color: var(--lp-green-deep);
}
body.lp-theme .appstore-band { background: var(--mist); }

.lp-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.lp-hero-brand .kicker { margin-bottom: 0; }
.lp-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 77, 44, .18);
  flex-shrink: 0;
}
.product-hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.lp-theme .status-badge.lp-device-badge {
  background: var(--lp-green-deep);
  color: #fff;
}

.device-ipad {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 9px;
  background: var(--navy);
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(17, 24, 39, .55);
}
.device-ipad img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: #E5E7EB;
}
.device-ipad.lg { max-width: 420px; border-radius: 26px; padding: 11px; }
.device-ipad.lg img { border-radius: 16px; }

.shot-gallery.ipads-feature {
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 32px 24px;
  margin-bottom: 48px;
}
.shot-gallery.ipads {
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  gap: 28px 16px;
}
@media (max-width: 1000px) {
  .shot-gallery.ipads { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .shot-gallery.ipads-feature { grid-template-columns: 1fr; }
  .shot-gallery.ipads { grid-template-columns: repeat(2, 1fr); }
  .device-ipad.lg { max-width: 360px; }
  .lp-app-icon { width: 60px; height: 60px; border-radius: 14px; }
}
@media (max-width: 520px) {
  .shot-gallery.ipads { grid-template-columns: 1fr; }
  .shot-gallery.ipads .device-ipad { max-width: 260px; }
}

