/* ==========================================================================
   MRsoft CRM product page — plain CSS for the CRM-only sections.
   Loaded only on /products/mrsoft-crm. Uses the V2 tokens from app.css
   (brand purple, navy display text, sharp corners, Plus Jakarta Sans).
   Sections: intro · sales tabs + workflow · mobile showcase · custom CRM.
   ========================================================================== */

.crm-intro, .crm-sales, .crm-mobile, .crm-custom {
  --crm-brand: #6D28D9;
  --crm-brand-600: #7C3AED;
  --crm-brand-800: #5B21B6;
  --crm-brand-900: #4C1D95;
  --crm-brand-950: #2E1065;
  --crm-soft: #F5F3FF;
  --crm-lilac: #DDD6FE;
  --crm-lilac-2: #C4B5FD;
  --crm-navy: #0E1330;
  --crm-ink: #4B5563;
  --crm-line: #E5E7EB;
  --crm-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

/* Sprite + shared icon strokes ------------------------------------------- */
.ci-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.crm-tile__icon, .crm-panel__art, .crm-flow__circle svg, .crm-process__icon svg, .crm-mobile__platform svg {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8;
}

/* Shared phone mockup ---------------------------------------------------- */
.crm-phone {
  margin: 0; position: relative; padding: 7px; border-radius: 30px;
  background: linear-gradient(145deg, #2A2F4F 0%, #0E1330 45%, #05070F 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 44px 64px -28px rgba(46, 16, 101, .55), 0 14px 28px -14px rgba(14, 19, 48, .45);
}
.crm-phone__screen { display: block; overflow: hidden; border-radius: 24px; background: #fff; }
.crm-phone__screen img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   02 · What is MRsoft CRM? — phone with floating module tiles
   ========================================================================== */
.crm-intro { background: #fff; padding: 64px 0; overflow: hidden; }
.crm-intro__grid { display: grid; gap: 40px; align-items: center; }
.crm-intro__stage {
  position: relative; width: 100%; max-width: 540px; margin: 0 auto; aspect-ratio: 1 / 1;
  container-type: inline-size;
}
.crm-intro__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.crm-intro__ring--outer { width: 92%; height: 92%; background: radial-gradient(circle, #EDE9FE 0%, rgba(237, 233, 254, .55) 42%, rgba(245, 243, 255, 0) 70%); }
.crm-intro__ring--inner { width: 66%; height: 66%; border: 1px solid #DDD6FE; }
.crm-intro__dot { position: absolute; border-radius: 50%; pointer-events: none; }
.crm-intro__dot--a { width: 2.4%; height: 2.4%; left: 9%; top: 6%; background: #A78BFA; }
.crm-intro__dot--b { width: 4.6%; height: 4.6%; left: 2%; bottom: 22%; border: 2px solid #8B5CF6; }
.crm-intro__dot--c { width: 3.2%; height: 3.2%; right: 3%; top: 8%; background: #C4B5FD; }
.crm-intro__phone { position: absolute; z-index: 2; left: 50%; top: 50%; width: 40%; translate: -50% -50%; }

.crm-tiles { list-style: none; margin: 0; padding: 0; }
.crm-tile {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6cqw; width: 21%; aspect-ratio: 1 / 1.06; padding: 2cqw;
  font-family: var(--crm-display); font-weight: 700; font-size: clamp(11px, 2.6cqw, 14px); line-height: 1.2; text-align: center;
  color: #fff; background: var(--crm-brand);
  box-shadow: inset 0 -3px 0 rgba(14, 19, 48, .18), 0 22px 34px -16px rgba(76, 29, 149, .55), 0 6px 12px -6px rgba(46, 16, 101, .35);
}
.crm-tile__icon { width: 6.4cqw; height: 6.4cqw; min-width: 22px; min-height: 22px; }
.crm-tile--2, .crm-tile--5 { flex-direction: row; width: auto; aspect-ratio: auto; padding: 2.4cqw 3.6cqw; gap: 1.8cqw; }
.crm-tile--2 .crm-tile__icon, .crm-tile--5 .crm-tile__icon { width: 4.6cqw; height: 4.6cqw; min-width: 18px; min-height: 18px; }
.crm-tile--3, .crm-tile--6 { color: var(--crm-brand); background: #fff; border: 1px solid #E9E4FB; }
.crm-tile--3 .crm-tile__label, .crm-tile--6 .crm-tile__label { color: var(--crm-navy); }
.crm-tile--4 { background: var(--crm-brand-900); }
.crm-tile--5 { background: var(--crm-brand-600); }
.crm-tile--1 { left: 5%;  top: 13%; }
.crm-tile--2 { left: 54%; top: 2%; }
.crm-tile--3 { right: 3%; top: 21%; }
.crm-tile--4 { left: 3%;  top: 55%; }
.crm-tile--5 { left: 13%; bottom: 3%; }
.crm-tile--6 { right: 4%; bottom: 11%; }

@keyframes crm-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.crm-tile[data-float] { animation: crm-float 6.5s ease-in-out infinite; }
.crm-tile--2 { animation-delay: -1.1s !important; }
.crm-tile--3 { animation-delay: -2.4s !important; }
.crm-tile--4 { animation-delay: -3.6s !important; }
.crm-tile--5 { animation-delay: -4.5s !important; }
.crm-tile--6 { animation-delay: -5.4s !important; }

.crm-intro__title {
  margin-top: 16px; font-family: var(--crm-display); font-weight: 700; color: var(--crm-navy);
  font-size: 34px; line-height: 40px; letter-spacing: -.02em;
}
.crm-intro__text { margin-top: 20px; font-size: 17px; line-height: 28px; color: var(--crm-ink); }
.crm-intro__text p + p { margin-top: 16px; }
.crm-textlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-weight: 600; font-size: 15px; color: var(--crm-brand); border-bottom: 1px solid transparent;
}
.crm-textlink:hover { color: var(--crm-brand-800); border-bottom-color: currentColor; }

/* ==========================================================================
   Sales section — purple gradient, vertical tabs, zig-zag workflow
   ========================================================================== */
.crm-sales {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0 150px;
  background: linear-gradient(140deg, #2E1065 0%, #4C1D95 36%, #6D28D9 76%, #7C3AED 100%);
}
.crm-sales::after { /* diagonal white ending */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; background: #fff;
  clip-path: polygon(0 100%, 100% 12%, 100% 100%);
}
.crm-sales__dots {
  position: absolute; top: 0; right: 0; width: 60%; height: 70%; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .26) 1.2px, transparent 1.7px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom left, #000 8%, transparent 68%); mask-image: linear-gradient(to bottom left, #000 8%, transparent 68%);
}
.crm-sales__inner { position: relative; z-index: 1; }
.crm-sales__head { max-width: 960px; margin: 0 auto; text-align: center; }
.crm-sales__lead { max-width: 780px; margin-inline: auto; }
.crm-sales__title { font-family: var(--crm-display); font-weight: 800; color: #fff; font-size: 32px; line-height: 40px; letter-spacing: -.02em; }
.crm-sales__lead { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--crm-lilac); }
.crm-sales__body { margin-top: 44px; display: grid; gap: 32px; }

/* Tabs — horizontal, scrollable on small screens */
.crm-tabs {
  display: flex; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity;
  border-bottom: 1px solid rgba(255, 255, 255, .22); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 82%, rgba(0, 0, 0, .25)); mask-image: linear-gradient(to right, #000 82%, rgba(0, 0, 0, .25));
}
.crm-tabs::-webkit-scrollbar { display: none; }
.crm-tab {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
  appearance: none; background: none; border: 0; border-radius: 0; margin: 0;
  padding: 12px 18px 14px; text-align: left; color: rgba(255, 255, 255, .6); font-family: var(--crm-display);
  transition: color var(--motion-fast, 150ms ease);
}
.crm-tab__num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.crm-tab__label { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap; transition: font-size .25s ease, line-height .25s ease; }
.crm-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.crm-tab:hover { color: rgba(255, 255, 255, .88); }
.crm-tab[aria-selected="true"] { color: #fff; }
.crm-tab[aria-selected="true"]::after { transform: scaleX(1); }
.crm-tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* Panel */
.crm-panel { outline: none; }
.crm-panel:focus-visible { outline: 2px dashed rgba(255, 255, 255, .6); outline-offset: 8px; }
.crm-panel__top { display: grid; gap: 22px; }
.crm-panel__art { width: 104px; height: 104px; color: #fff; stroke-width: 2.2; }
.crm-panel__title { font-family: var(--crm-display); font-weight: 700; color: #fff; font-size: 24px; line-height: 31px; letter-spacing: -.01em; }
.crm-panel__text { margin-top: 12px; max-width: 700px; font-size: 16px; line-height: 27px; color: #EDE9FE; }
.crm-panel__cta { margin-top: 26px; }

/* Workflow chart — small screens: vertical zig-zag (circle + label rows) */
.crm-flow { position: relative; margin-top: 44px; }
.crm-flow__lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.crm-flow__lines path { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-dasharray: .5 7; stroke-linecap: round; }
.crm-flow__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.crm-flow__step { display: flex; align-items: center; gap: 16px; }
.crm-flow__step:nth-child(even) { padding-left: 56px; }
.crm-flow__circle {
  flex-shrink: 0; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  color: #fff; background: rgba(46, 16, 101, .35); border: 5px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 12px 24px -12px rgba(14, 19, 48, .7);
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.crm-flow__circle svg { width: 32px; height: 32px; }
.crm-flow__label { font-family: var(--crm-display); font-weight: 700; font-size: 16px; line-height: 21px; color: #fff; }
.crm-flow__step:hover .crm-flow__circle { transform: translateY(-4px); background: #fff; color: var(--crm-brand); border-color: rgba(255, 255, 255, .45); }

@media (min-width: 768px) {
  .crm-panel__top { grid-template-columns: 128px minmax(0, 1fr); gap: 36px; align-items: start; }
  .crm-panel__art { width: 128px; height: 128px; }
  .crm-panel__title { font-size: 28px; line-height: 36px; }
  .crm-flow { margin-top: 64px; }
  .crm-flow__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-bottom: 8px; }
  .crm-flow__step { flex-direction: column; text-align: center; gap: 14px; }
  .crm-flow__step:nth-child(even) { padding-left: 0; margin-top: 72px; }
  .crm-flow__circle { width: 90px; height: 90px; border-width: 6px; }
  .crm-flow__circle svg { width: 38px; height: 38px; }
  .crm-flow__label { font-size: 15px; line-height: 20px; max-width: 150px; }
}

@media (min-width: 1024px) {
  .crm-sales { padding: 104px 0 210px; }
  .crm-sales::after { height: 150px; }
  .crm-sales__title { font-size: 50px; line-height: 58px; }
  .crm-sales__lead { font-size: 19px; line-height: 31px; }
  .crm-sales__body { margin-top: 72px; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .crm-tabs { flex-direction: column; overflow: visible; align-self: start; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .25); -webkit-mask-image: none; mask-image: none; }
  .crm-tab { width: 100%; padding: 18px 28px 18px 0; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .crm-tab:last-child { border-bottom: 0; }
  .crm-tab__num { font-size: 14px; }
  .crm-tab { padding: 20px 30px 20px 0; }
  .crm-tab__label { font-size: 20px; line-height: 26px; white-space: normal; }
  .crm-tab[aria-selected="true"] .crm-tab__label { font-size: 27px; line-height: 32px; }
  .crm-tab::after { left: auto; right: -2px; top: 14px; bottom: 14px; width: 4px; height: auto; transform: scaleY(0); transform-origin: center; }
  .crm-tab[aria-selected="true"]::after { transform: scaleY(1); }
  .crm-panel__top { grid-template-columns: 156px minmax(0, 1fr); gap: 44px; }
  .crm-panel__art { width: 156px; height: 156px; stroke-width: 2; }
  .crm-panel__title { font-size: 34px; line-height: 42px; }
  .crm-panel__text { max-width: 760px; font-size: 18px; line-height: 30px; }
  .crm-panel__cta { margin-top: 30px; }
  .crm-flow { margin-top: 72px; }
  .crm-flow__list { gap: 12px; }
  .crm-flow__circle { width: 116px; height: 116px; border-width: 8px; }
  .crm-flow__circle svg { width: 48px; height: 48px; stroke-width: 1.7; }
  .crm-flow__step { gap: 16px; }
  .crm-flow__step:nth-child(even) { margin-top: 92px; }
  .crm-flow__label { font-size: 17px; line-height: 22px; max-width: 170px; }
}

/* ==========================================================================
   Mobile CRM showcase — two overlapping phones
   ========================================================================== */
.crm-mobile { background: #fff; padding: 72px 0; overflow: hidden; }
.crm-mobile__grid { display: grid; gap: 48px; align-items: center; }
.crm-mobile__visual { position: relative; width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 1 / 1.1; }
.crm-mobile__floor {
  position: absolute; left: 6%; right: 2%; bottom: 0; height: 12%;
  background: radial-gradient(ellipse at center, rgba(46, 16, 101, .24) 0%, rgba(46, 16, 101, 0) 68%); filter: blur(4px);
}
.crm-mobile__phone { position: absolute; width: 41%; }
/* Contact shadows under each phone (animated with the float in crm-page.js; static otherwise). */
.crm-mobile__shadow {
  position: absolute; z-index: 0; height: 5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 16, 101, .32), rgba(46, 16, 101, 0));
  filter: blur(3px);
}
.crm-mobile__shadow--back { left: 9%; width: 36%; top: 81%; }
.crm-mobile__shadow--front { left: 56%; width: 38%; top: 95%; }
.crm-mobile__visual.is-animated .crm-mobile__phone, .crm-mobile__visual.is-animated .crm-mobile__shadow { will-change: transform; }
.crm-mobile__phone--back { left: 6%; top: 1%; }
.crm-mobile__phone--front {
  z-index: 2; left: 53%; top: 16%; transform: rotate(9deg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), -24px 48px 60px -26px rgba(46, 16, 101, .6), 0 16px 28px -14px rgba(14, 19, 48, .5);
}
.crm-mobile__tag {
  position: absolute; z-index: 3; padding: 4px 10px; font-size: 11px; font-weight: 600; line-height: 16px;
  color: var(--crm-navy); background: rgba(255, 255, 255, .94); border: 1px solid var(--crm-line);
  box-shadow: 0 6px 14px -8px rgba(14, 19, 48, .35); white-space: nowrap;
}
.crm-mobile__tag--back { left: 6%; top: -3%; }
.crm-mobile__title {
  margin-top: 16px; font-family: var(--crm-display); font-weight: 700; color: var(--crm-navy);
  font-size: 32px; line-height: 39px; letter-spacing: -.02em;
}
.crm-mobile__text { margin-top: 18px; font-size: 17px; line-height: 28px; color: var(--crm-ink); }
.crm-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.crm-checks li { display: flex; gap: 12px; }
.crm-checks__mark { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; color: #fff; background: var(--crm-brand); }
.crm-checks strong { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--crm-navy); }
.crm-checks__detail { display: block; margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--crm-ink); }
.crm-mobile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.crm-mobile__platform {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--crm-line); font-size: 13px; font-weight: 600; color: var(--crm-navy);
}
.crm-mobile__platform svg { width: 16px; height: 16px; color: var(--crm-brand); }

/* ==========================================================================
   Custom CRM development + customization process
   ========================================================================== */
.crm-custom {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0;
  background: linear-gradient(160deg, #2E1065 0%, #4C1D95 58%, #5B21B6 100%);
}
.crm-custom__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(70% 80% at 100% 0%, #000 0%, transparent 70%);
}
.crm-custom__inner { position: relative; z-index: 1; }
.crm-custom__top { display: grid; gap: 40px; }
.crm-custom__title {
  margin-top: 16px; font-family: var(--crm-display); font-weight: 800; color: #fff;
  font-size: 34px; line-height: 40px; letter-spacing: -.02em;
}
.crm-custom__text { margin-top: 22px; max-width: 640px; font-size: 17px; line-height: 28px; color: var(--crm-lilac); }
.crm-custom__text p + p { margin-top: 16px; }
.crm-custom__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.crm-custom__card {
  align-self: start; padding: 28px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07);
  box-shadow: 0 30px 50px -30px rgba(14, 19, 48, .6);
}
.crm-custom__kicker { font-size: 11px; font-weight: 600; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--crm-lilac-2); }
.crm-custom__points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.crm-custom__points li { display: flex; gap: 12px; font-size: 15px; line-height: 24px; color: #fff; }
.crm-custom__mark { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; color: var(--crm-brand-800); background: #fff; }
.crm-custom__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 20px; color: var(--crm-lilac-2); }

.crm-process { margin-top: 64px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .14); }
.crm-process__title { font-family: var(--crm-display); font-weight: 700; font-size: 22px; line-height: 28px; color: #fff; }
.crm-process__list { position: relative; list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; }
.crm-process__step { position: relative; }
.crm-process__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px;
  color: var(--crm-brand); background: #fff; box-shadow: 0 16px 28px -14px rgba(14, 19, 48, .7);
  transition: transform .25s ease;
}
.crm-process__icon svg { width: 26px; height: 26px; }
.crm-process__step:hover .crm-process__icon { transform: translateY(-3px); }
.crm-process__num { display: block; margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crm-lilac-2); }
.crm-process__name { margin-top: 6px; font-family: var(--crm-display); font-weight: 700; font-size: 17px; line-height: 24px; color: #fff; }
.crm-process__text { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--crm-lilac); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .crm-custom__actions { flex-direction: row; gap: 12px; }
  .crm-process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}
@media (min-width: 768px) {
  .crm-intro { padding: 88px 0; }
  .crm-intro__title { font-size: 40px; line-height: 46px; }
  .crm-mobile { padding: 96px 0; }
  .crm-mobile__title { font-size: 38px; line-height: 45px; }
  .crm-custom { padding: 96px 0; }
  .crm-custom__title { font-size: 46px; line-height: 52px; }
  .crm-custom__card { padding: 32px; }
}
@media (min-width: 1024px) {
  .crm-intro { padding: 112px 0; }
  .crm-intro__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; }
  .crm-intro__title { font-size: 46px; line-height: 52px; }
  .crm-mobile { padding: 112px 0; }
  .crm-mobile__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .crm-mobile__title { font-size: 42px; line-height: 50px; }
  .crm-checks { grid-template-columns: 1fr; }
  .crm-custom { padding: 112px 0; }
  .crm-custom__top { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; }
  .crm-process__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .crm-process__list::before { /* dotted connector through the icon centres */
    content: ""; position: absolute; top: 30px; left: 30px; right: calc((100% - 96px) / 5 - 30px);
    border-top: 2px dotted rgba(255, 255, 255, .38);
  }
}
@media (min-width: 1280px) {
  .crm-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Reduced motion: static composition, no floating or animated indicators. */
@media (prefers-reduced-motion: reduce) {
  .crm-tile[data-float] { animation: none; }
  .crm-tab::after, .crm-tab__label, .crm-flow__circle, .crm-process__icon { transition: none; }
  .crm-flow__step:hover .crm-flow__circle, .crm-process__step:hover .crm-process__icon { transform: none; }
}

/* ==========================================================================
   Hero visual — real Android home screen on the V2 plinth
   ========================================================================== */
.crm-hero-phone {
  position: absolute; left: 50%; top: 6%; width: clamp(150px, 43%, 208px); translate: -50% 0; margin: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 40px 60px -26px rgba(46, 16, 101, .55), 0 14px 26px -14px rgba(14, 19, 48, .45);
}

/* ==========================================================================
   09 · See it in use — continuous screenshot marquee
   Movement is a JS-driven translate3d (crm-page.js); no scroll snapping, no visible controls.
   ========================================================================== */
.crm-gallery { --crm-brand: #6D28D9; background: #fff; padding: 64px 0 56px; overflow: hidden; }
.crm-gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.crm-gallery__note { margin-top: 14px; max-width: 560px; font-size: 14px; line-height: 22px; color: #6B7280; }
.crm-lightbox__btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
  border: 1px solid #D1D5DB; border-radius: 0; background: #fff; color: #0E1330;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.crm-lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crm-lightbox__btn:focus-visible, .crm-gallery__open:focus-visible { outline: 2px solid var(--crm-brand); outline-offset: 3px; }

/* Viewport clips horizontally only (shadows and hover lift stay visible); vertical page scrolling
   stays native on touch screens while horizontal swipes drive the marquee. */
.crm-gallery__viewport {
  margin-top: 36px; overflow: hidden; overflow-x: clip; overflow-y: visible;
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
}
.crm-gallery__viewport.is-dragging { cursor: grabbing; }
.crm-gallery__track {
  --gutter-x: max(var(--gutter, 1rem), calc((100vw - 1200px) / 2));
  --gap: 20px;
  display: flex; gap: var(--gap); margin: 0; padding: 18px var(--gutter-x) 28px; list-style: none;
  will-change: transform; transform: translate3d(0, 0, 0);
}
/* Cards per view: flex-basis % resolves against the track's content box (the area between the gutters). */
.crm-gallery__item { --per: 1; flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.crm-gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.crm-gallery__viewport.is-dragging .crm-gallery__open { cursor: grabbing; }
.crm-gallery__phone { display: block; transition: transform .25s ease, box-shadow .25s ease; }
.crm-gallery__phone .crm-phone__screen { aspect-ratio: 738 / 1540; }
.crm-gallery__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; }
.crm-gallery__open:hover .crm-gallery__phone { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 34px 50px -24px rgba(76, 29, 149, .55); }
.crm-gallery__caption { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 16px; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; font-size: 15px; color: #0E1330; }
.crm-gallery__num { font-size: 12px; font-weight: 600; color: var(--crm-brand); }

@media (max-width: 639px) { .crm-gallery__item { flex-basis: 76%; } } /* one card + a peek of the next */
@media (min-width: 640px) { .crm-gallery__item { --per: 2; } }
@media (min-width: 768px) {
  .crm-gallery { padding: 96px 0 80px; }
  .crm-gallery__track { --gap: 28px; }
}

/* ==========================================================================
   Screenshot lightbox
   ========================================================================== */
.crm-lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.crm-lightbox[hidden] { display: none; }
.crm-lightbox__backdrop { position: absolute; inset: 0; background: rgba(14, 19, 48, .86); backdrop-filter: blur(4px); }
.crm-lightbox__panel { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 100%; }
.crm-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.crm-lightbox__title { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; font-size: 16px; color: #fff; }
.crm-lightbox__count { margin-left: 6px; font-weight: 500; font-size: 13px; color: #C4B5FD; }
.crm-lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
.crm-lightbox__figure { margin: 0; min-height: 0; display: flex; justify-content: center; }
.crm-lightbox__figure img {
  display: block; max-width: min(100%, 420px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto;
  border: 7px solid #0E1330; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.crm-lightbox__btn { flex-shrink: 0; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.crm-lightbox__btn:hover { background: #fff; color: var(--crm-brand, #6D28D9); }
@media (max-width: 639px) {
  /* Phones: screenshot first, previous/next as a row underneath (never over the image). */
  .crm-lightbox__stage { flex-wrap: wrap; gap: 12px; }
  .crm-lightbox__figure { order: -1; flex-basis: 100%; }
  .crm-lightbox__figure img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
}
html.crm-lightbox-open, html.crm-lightbox-open body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .crm-gallery__phone { transition: none; }
  .crm-gallery__open:hover .crm-gallery__phone { transform: none; }
}

/* Gallery: 4 large cards per view on desktop (kept last so it wins over the base rule). */
@media (min-width: 1024px) { .crm-gallery__item { --per: 4; } }
