/* Site-wide. Colours come from Admin → Site settings (CSS variables set in base.html). */
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #fff; color: #1f2937; }
.site-nav .nav-link { font-weight: 500; }
.site-footer a { text-decoration: none; opacity: .8; }
.site-footer a:hover { opacity: 1; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.scroll-target { scroll-margin-top: 5rem; }

/* Banner at the top of every page */
.page-banner { position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.14), transparent 45%); }
.page-banner > .container { position: relative; z-index: 1; }
.home-banner > .container { padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.product-banner > .container { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.banner-muted { opacity: .82; }
.btn-banner-outline { color: var(--banner-text); border: 1px solid currentColor; background: transparent; }
.btn-banner-outline:hover { color: var(--banner-text); background: rgba(255,255,255,.12); }
.hero-shot { border-radius: 1rem; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.35); }
.banner-points li { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; margin-bottom: .6rem; border-radius: .75rem; background: rgba(255,255,255,.1); font-weight: 500; }
.banner-check { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cta-bg); color: var(--cta-text); font-size: .8rem; font-weight: 700; }

/* Home page cards */
.product-tile { border-radius: 1rem; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.product-tile:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(11,29,58,.12) !important; }
.tile-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--banner-bg), var(--banner-bg-2)); color: var(--banner-text); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { font-size: 1.8rem; font-weight: 800; padding: 1rem; text-align: center; }
.why-icon { width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: #fff; box-shadow: 0 .25rem .75rem rgba(0,0,0,.06); }

/* Features */
.feature-card { padding: 1.25rem 1.25rem 1.25rem 3rem; border: 1px solid #e5e7eb; border-radius: .9rem; position: relative; background: #fff; }
.feature-card::before { content: "✓"; position: absolute; left: 1.1rem; top: 1.15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Screenshots and videos: one carousel each, sized to fit the screen */
.media-section { margin-bottom: 4rem; }
.media-section + .media-section { margin-top: -0.5rem; }
.media-carousel { position: relative; }
.carousel-frame { position: relative; height: min(100vh - 240px, 62vw, 760px); min-height: 220px; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b); display: flex; align-items: center; justify-content: center; }
.carousel-frame img, .carousel-frame video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.carousel-frame video { width: 100%; height: 100%; background: #000; }
.carousel-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.enlarge-btn { position: absolute; top: .75rem; right: .75rem; z-index: 3; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; pointer-events: none; }
button.enlarge-btn { pointer-events: auto; cursor: zoom-in; }
/* Arrows sit mid-height on the frame, small enough not to cover the video's own controls. */
.media-carousel .carousel-control-prev, .media-carousel .carousel-control-next { top: calc(max(min(100vh - 240px, 62vw, 760px), 220px) / 2); bottom: auto;
  transform: translateY(-50%); width: 4rem; height: 3.5rem; opacity: 1; z-index: 4; }
/* Arrows use the button colours (Admin → Site settings) with a white ring, so they stand out on any picture. */
.carousel-arrow { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--cta-bg); color: var(--cta-text); border: 3px solid #fff; font-size: 1.9rem; font-weight: 700; line-height: 1;
  padding-bottom: .2rem; box-shadow: 0 .35rem 1rem rgba(0,0,0,.45); transition: transform .15s; }
.media-carousel .carousel-control-prev:hover .carousel-arrow, .media-carousel .carousel-control-next:hover .carousel-arrow { transform: scale(1.1); }
.carousel-caption-text { margin: .75rem 0 0; text-align: center; color: #4b5563; font-size: .95rem; }
.carousel-footer { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .75rem; }
.media-carousel .carousel-indicators { position: static; margin: 0; }
.media-carousel .carousel-indicators [data-bs-target] { width: .6rem; height: .6rem; border-radius: 50%; border: 0; background-color: #94a3b8; opacity: .5; }
.media-carousel .carousel-indicators .active { opacity: 1; background-color: var(--banner-bg-2); }
.carousel-count { font-size: .85rem; color: #6b7280; font-variant-numeric: tabular-nums; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 80vh; border-radius: .5rem; background: #000; }
/* Enlarge popup */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; line-height: 1; }
.lightbox-nav:hover { background: rgba(255,255,255,.32); }
.lightbox-nav.prev { left: .75rem; } .lightbox-nav.next { right: .75rem; }

/* Description */
.description p { line-height: 1.75; color: #374151; }

/* Pricing */
.pricing { padding: 3rem 1rem; border-radius: 1.25rem; background: #f6f7fb; }
.pricing[data-billing="year"] .billing-month, .pricing[data-billing="month"] .billing-year { display: none; }
.plan-card { border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.04); }
.plan-featured { border: 2px solid var(--banner-bg-2); box-shadow: 0 1rem 2rem rgba(11,29,58,.1); }
.plan-badge { background: var(--banner-bg-2); color: var(--banner-text); }
.plan-features { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .92rem; }
.plan-features li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: #15803d; font-weight: 700; }

/* Order, licence and subscription pages */
.detail-img { max-height: 380px; width: 100%; object-fit: cover; border-radius: .5rem; }

/* Contact us popup: the hidden anti-spam field */
.contact-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
