/* =========================================================
   SignMap — Premium / Minimal Product Page
   (Matches RoadMap premium scripts)
   ========================================================= */

:root {
  --sm-container: var(--container, 1180px);

  --sm-ink: #0c1a2a;
  --sm-muted: rgba(12, 26, 42, .70);
  --sm-soft: rgba(12, 26, 42, .10);

  --sm-accent: #c62828;

  --sm-shadow: 0 18px 60px rgba(0, 0, 0, .10);
}

/* Container */
.sm-container {
  max-width: var(--sm-container);
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 980px) {
  .sm-container {
    padding: 0 18px;
  }
}

/* =========================================================
   Main layout
   ========================================================= */

.sm-main {
  padding: 26px 0 90px;
}

/* Premium split (no card) */
.sm-hero {
  margin-top: 28px;
}

.sm-hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: start;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .sm-hero__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Copy */
.sm-kicker {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: #111111;
}

.sm-lede {
  margin: 0;
  color: rgba(12, 26, 42, .78);
  line-height: 1.85;
  font-size: 15.4px;
  max-width: 74ch;
}

/* Subtle divider line */
.sm-divider {
  margin: 18px 0 16px;
  height: 1px;
  background: rgba(12, 26, 42, .10);
}

/* Features */
.sm-h2 {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 22px;
  color: rgba(12, 26, 42, .92);
}

.sm-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 74ch;
}

.sm-bullets li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--sm-muted);
  line-height: 1.75;
}

.sm-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 9px;
  background: rgba(12, 26, 42, .72);
}

/* =========================================================
   Tab switcher (Overview / Key Features)
   ========================================================= */
.sm-tabs {
  position: relative;
  display: inline-flex;
  background: rgba(12, 26, 42, .06);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.sm-tab {
  position: relative;
  z-index: 1;
  padding: 8px 20px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(12, 26, 42, .5);
  cursor: pointer;
  transition: color .2s ease;
}

.sm-tab:hover { color: var(--sm-ink); }
.sm-tab.is-active { color: var(--sm-ink); }

.sm-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  transition: left .25s ease, width .25s ease;
  pointer-events: none;
}

.sm-tab-panel { display: none; }

.sm-tab-panel.is-active {
  display: block;
  animation: sm-fade-in .22s ease;
}

@keyframes sm-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Media column */
.sm-hero__media {
  margin: 0;
}

/* =========================================================
   Carousel
   ========================================================= */

.p-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sm-shadow);
  border: 1px solid rgba(12, 26, 42, .10);
}

.pc-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pc-track {
  display: flex;
  height: 100%;
  transition: transform 280ms ease;
  will-change: transform;
}

.pc-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.pc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(12, 26, 42, .35);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  font-size: 20px;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.pc-btn:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(12, 26, 42, .45);
  border-color: rgba(255, 255, 255, .45);
}

.pc-prev { left: 14px; }
.pc-next { right: 14px; }

.pc-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: width .2s ease, background .2s ease;
}

.pc-dot.is-active {
  width: 26px;
  background: rgba(255, 255, 255, .90);
}

/* Caption */
.sm-media-caption {
  margin-top: 10px;
  color: rgba(12, 26, 42, .62);
  font-size: .95rem;
  letter-spacing: -0.01em;
}

/* =========================================================
   Solutions section
   ========================================================= */

.sm-solutions {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(12, 26, 42, .08);
}

.sm-solutions__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .sm-solutions__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sm-solutions__media {
  margin: 0;
}

.sm-solutions__actions {
  margin-top: 18px;
}

.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: var(--sm-ink);
  background: #fff;
  border: 1px solid rgba(12, 26, 42, .18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.sm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  border-color: rgba(12, 26, 42, .28);
  color: var(--sm-accent);
}

/* Video display */
.sm-videoFrame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 26, 42, .10);
  box-shadow: var(--sm-shadow);
  aspect-ratio: 16 / 9;
}

.sm-videoVignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(198, 40, 40, .18), transparent 55%),
    radial-gradient(700px 520px at 90% 0%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(180deg, rgba(12, 26, 42, .08) 0%, rgba(12, 26, 42, .00) 35%, rgba(12, 26, 42, .10) 100%);
  z-index: 1;
}

.sm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  z-index: 0;
}

/* =========================================================
   Bottom CTA
   ========================================================= */

.sm-bottom-cta {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(12, 26, 42, .08);
}

.sm-bottom-cta__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sm-bottom-cta__inner p {
  margin: 0;
  color: rgba(12, 26, 42, .70);
}

.sm-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  color: rgba(12, 26, 42, .90);
  padding-bottom: 3px;
  transition: color .2s ease;
}

.sm-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sm-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.sm-link:hover {
  color: var(--sm-accent);
}

.sm-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .sm-bottom-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Reveal
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}

[data-reveal].in-view,
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pc-btn,
  .sm-link {
    transition: none;
  }
}

/* Anchor offset for in-page links */
#signmap-solutions { scroll-margin-top: 120px; }
