/* Pinnacle ONE marketing site
   Color tokens, typography stack, logo treatment, topographic lines,
   and footer lockup match the frozen Pinnacle ONE product identity. */

:root {
  --blue: #2563eb;
  --blue2: #3b82f6;
  --navy: #0f172a;
  --ink: #1e293b;
  --mute: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --white: #ffffff;
  --icon-blue: #1E6FE8;
  --btn-grad: linear-gradient(135deg, #1d4ed8, #3b82f6);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --header-h: 72px;
  --content: 1120px;
  --wide: 1240px;
  --font: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #1d4ed8; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 40px, var(--wide));
  margin-inline: auto;
}

/* Header — 72px, white, 48px logo, same as the product */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  width: min(100% - 32px, var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
  text-decoration: none;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nav a,
.nav-btn {
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover,
.nav-btn:hover {
  background: #f1f5f9;
  color: var(--navy);
}
.nav a[aria-current="page"] { color: var(--navy); }

.has-menu { position: relative; }
.has-menu .menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  z-index: 20;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu,
.has-menu.is-open .menu { display: block; }
.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.menu a span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  margin-top: 1px;
}
.menu a:hover { background: #f1f5f9; color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.signin {
  color: var(--navy) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
}
.signin:hover { background: #f1f5f9; }
.signin-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { border-color: #94a3b8; color: var(--navy); text-decoration: none; }
.btn.primary {
  background: var(--btn-grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3); }
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Topographic contour lines — exact product treatment */
.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.has-topo { position: relative; }
.has-topo > *:not(.topo) { position: relative; z-index: 1; }

/* Hero */
.hero {
  background: var(--bg);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 18px;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: #334155;
  max-width: 38em;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}

.frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.frame img { width: 100%; height: auto; display: block; }
.badge-sample {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.frame-caption {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  color: var(--mute);
  font-weight: 500;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* Sections */
section { padding: 88px 0; }
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-intro {
  font-size: 17px;
  color: #334155;
  max-width: 42em;
  margin-bottom: 40px;
}
.bg-alt { background: var(--bg); }
.bg-white { background: #fff; }

/* Overview module cards */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mod-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f4f7 100%);
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 180px;
}
.mod-card:hover,
.mod-card:focus-visible {
  background: var(--btn-grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  outline: none;
}
.mod-card:hover h3,
.mod-card:focus-visible h3,
.mod-card:hover p,
.mod-card:focus-visible p,
.mod-card:hover svg,
.mod-card:focus-visible svg { color: #fff; fill: #fff; }
.mod-card svg {
  width: 36px;
  height: 36px;
  color: var(--icon-blue);
  fill: currentColor;
  flex-shrink: 0;
}
.mod-card h3 {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.mod-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
  margin-top: auto;
}
.mod-card:hover p,
.mod-card:focus-visible p { color: rgba(255,255,255,0.92); }

.also-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.also {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.also h3 { font-size: 16px; margin-bottom: 6px; }
.also p { font-size: 14.5px; color: #475569; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.feature.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }
.feature-copy ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-copy li {
  padding-left: 22px;
  position: relative;
  color: #334155;
  font-size: 15.5px;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.feature-stack { display: grid; gap: 16px; }

/* Segments */
.seg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.seg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-soft);
}
.seg-card svg {
  width: 40px;
  height: 40px;
  color: var(--icon-blue);
  margin-bottom: 14px;
}
.seg-card p { font-size: 14.5px; color: #475569; }

/* Walkthroughs */
.video-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.video-side { display: grid; gap: 16px; }
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}
.video-card:hover { border-color: #cbd5e1; }
.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8eef5;
  overflow: hidden;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.05), rgba(15,23,42,0.28));
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--btn-grad);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  display: grid;
  place-items: center;
}
.play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.ph-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
}
.video-meta { padding: 16px 18px 18px; }
.video-meta h3 { font-size: 17px; margin-bottom: 4px; }
.video-meta p { font-size: 14px; color: #475569; }
.video-card.featured .poster { aspect-ratio: 16 / 9; }
.video-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--mute);
}
.video-grid-2 {
  margin-top: 16px;
  grid-template-columns: 1fr 1fr 1fr;
}
.video-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(1100px, calc(100% - 32px));
  max-width: 1100px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow);
}
.video-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.dialog-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 12px;
}
.dialog-chrome h2 {
  font-size: 18px;
  color: #fff;
  margin: 0;
}
.dialog-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.dialog-close:hover,
.dialog-close:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}
.video-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.dialog-note {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 13.5px;
  color: #cbd5e1;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.why-points { display: grid; gap: 20px; margin-top: 8px; }
.why-points h3 { font-size: 17px; margin-bottom: 4px; }
.why-points p { color: #475569; font-size: 15px; }
.why-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.why-aside p { color: #334155; }
.why-aside .sig {
  margin-top: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.why-aside .sig span {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0;
  margin-top: 2px;
}

/* Demo form */
.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field .hint { font-weight: 500; color: var(--mute); font-size: 12px; }
.field input,
.field select,
.field textarea {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 500;
  outline: none;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-legal { font-size: 12.5px; color: var(--mute); max-width: 36em; }
.preview-banner {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.thanks {
  display: none;
  padding: 12px 0 4px;
}
.thanks.is-visible { display: block; }
.thanks h3 { font-size: 22px; }
.thanks p { color: #334155; margin-top: 8px; }
form.is-hidden { display: none; }

/* Pre-footer + frozen product footer lockup */
.prefooter {
  background: var(--navy);
  color: #e2e8f0;
  padding: 56px 0 48px;
}
.prefooter a { color: #e2e8f0; text-decoration: none; }
.prefooter a:hover { color: #fff; text-decoration: underline; }
.pf-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.pf-brand p { margin-top: 12px; font-size: 14px; color: #94a3b8; max-width: 28em; }
.pf-contact a { color: #fff; font-weight: 600; }
.prefooter h2, .prefooter h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.prefooter ul { list-style: none; display: grid; gap: 8px; }
.prefooter li, .prefooter li a { font-size: 14px; font-weight: 500; color: #cbd5e1; }

.footer {
  position: relative;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0;
  text-align: center;
  min-height: 213px;
  overflow: hidden;
}
.footer-mtn {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/footer-mountains.webp");
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
.footer-topo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.footer-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}
.footer-text .rule {
  width: 88px;
  height: 8px;
  flex-shrink: 0;
  display: block;
}
.legal {
  position: relative;
  z-index: 1;
  padding: 160px 24px 18px;
  font-size: 11.5px;
  color: #334155;
  font-weight: 500;
}
.legal p + p { margin-top: 4px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .feature,
  .feature.flip,
  .why-grid,
  .demo-grid,
  .video-grid,
  .video-grid-2,
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-copy,
  .feature.flip .feature-media { order: unset; }
  .mod-grid,
  .seg-grid { grid-template-columns: repeat(2, 1fr); }
  .logo img { height: 44px; }
  .video-card.featured { order: -1; }
  .legal { padding-top: 150px; }
}

@media (max-width: 860px) {
  .nav, .header-actions .signin { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }
  .site-header.is-open { box-shadow: var(--shadow); }
  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }
  .site-header.is-open .header-actions .signin {
    display: none;
  }
  .site-header.is-open .nav .signin-mobile { display: block; }
  .has-menu .menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 10px;
    min-width: 0;
  }
  .has-menu.is-open .menu,
  .has-menu:focus-within .menu { display: block; }
  .hero { padding: 40px 0 48px; }
  section { padding: 64px 0; }
  .also-row, .form-grid { grid-template-columns: 1fr; }
  .footer-text { font-size: 11px; letter-spacing: 1.5px; gap: 8px; padding: 0 16px; }
  .footer-text .rule { width: 48px; }
}

@media (max-width: 560px) {
  .mod-grid, .seg-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-wide { width: min(100% - 32px, var(--content)); }
  .hero h1 { font-size: 30px; }
  .form-card { padding: 20px; }
  .btn { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Pre-footer logo sits on a white plate so the official mark stays readable on navy */
.pf-brand .logo {
  display: inline-flex;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
}
.pf-brand .logo img { height: 40px; }

/* Keep the official logo, sign-in, and demo CTA from colliding with the nav */
.nav a,
.nav-btn { padding: 8px 9px; font-size: 13px; }
.header-actions { z-index: 2; }
.badge-sample { left: auto; right: 12px; }

@media (max-width: 1240px) {
  .nav a,
  .nav-btn { padding: 8px 7px; font-size: 12.5px; }
  .header-inner { width: min(100% - 24px, var(--wide)); gap: 8px; }
  .logo { margin-right: 0; }
}

/* Frozen footer lockup stays one line; scale it on small screens */
@media (max-width: 860px) {
  .footer-text {
    font-size: 10px;
    letter-spacing: 1.2px;
    gap: 8px;
    padding: 0 12px;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
  .footer-text .rule { width: 36px; }
  .legal { padding: 170px 20px 20px; }
}
@media (max-width: 480px) {
  .header-actions .btn { padding: 0 12px; height: 40px; font-size: 13px; }
  .logo img { height: 36px; }
}


/* Product screenshots and walkthrough posters: lift, tilt, lightbox */
.media-card {
  isolation: isolate;
}
.media-card.reveal-media:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
.frame.media-card {
  overflow: visible;
}
.media-zoom {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
  text-align: left;
}
.frame.media-card .media-zoom img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.frame.media-card .badge-sample {
  pointer-events: none;
}

.image-dialog {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.78);
}
.image-dialog-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px 28px;
  box-sizing: border-box;
}
.image-dialog-stage {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.image-dialog-stage img {
  display: block;
  max-width: min(100%, 100vw - 144px);
  max-height: calc(100vh - 168px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: #0b1220;
  touch-action: none;
  transform-origin: center center;
}
.image-dialog-stage figcaption {
  max-width: min(72ch, 100%);
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  padding: 10px 16px;
  border-radius: 12px;
}
.image-dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.image-dialog-close:hover,
.image-dialog-close:focus-visible {
  background: rgba(15, 23, 42, 0.9);
}
.image-dialog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.image-dialog-nav:hover,
.image-dialog-nav:focus-visible {
  background: rgba(15, 23, 42, 0.9);
}
.image-dialog-nav.prev { left: 16px; }
.image-dialog-nav.next { right: 16px; }
.image-dialog-nav svg { width: 22px; height: 22px; display: block; }
.image-dialog-nav[hidden] { display: none; }

@media (max-width: 700px) {
  .image-dialog-shell { padding: 56px 16px 24px; }
  .image-dialog-stage img { max-width: 100%; max-height: calc(100vh - 150px); }
  .image-dialog-nav.prev { left: 6px; }
  .image-dialog-nav.next { right: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .media-card.reveal-media {
    transition: opacity 550ms ease, transform 550ms ease, box-shadow 350ms ease;
  }
  .media-card.reveal-media.is-in.is-ready {
    transition: transform 350ms ease, box-shadow 350ms ease;
  }
  .media-card.reveal-media.is-in:hover,
  .media-card.reveal-media.is-in.is-tilting {
    z-index: 3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 24px 56px rgba(15, 23, 42, 0.16);
  }
  .media-card.reveal-media.is-in:hover {
    transform: translateY(-8px) scale(1.02);
  }
  .video-card.media-card.reveal-media.is-in:hover {
    border-color: #cbd5e1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-card.reveal-media:not(.is-in),
  .media-card.reveal-media.is-in,
  .media-card.reveal-media.is-in:hover {
    opacity: 1;
    transform: none;
    box-shadow: var(--shadow);
  }
}
