/* /crm-migration/ : free CRM to CRM migration service page.
   Dark first like the rest of the site. The /assets/dark/ sheets (and with them
   the --p-* palette) are switched off in the light theme, so every token used
   here has a fallback and the light theme gets its own values at the bottom. */

.mg{
  --mg-ink: var(--p-ink, #0a0b10);
  --mg-band: var(--p-ink-2, #0e1017);
  --mg-surf: var(--p-surf, #12141c);
  --mg-surf-2: var(--p-surf-2, #181b25);
  --mg-text: var(--p-ivory, #ebe9e4);
  --mg-text-2: var(--p-ivory-2, #a09fa6);
  --mg-mid: var(--p-mid, #85838d);
  --mg-line: var(--p-line, rgba(244,241,234,.08));
  --mg-line-2: var(--p-line-2, rgba(244,241,234,.14));
  --mg-violet: #6651f6;
  --mg-violet-ink: var(--p-violet-ink, #a99dff);
  --mg-violet-soft: var(--p-violet-soft, rgba(102,81,246,.14));
  --mg-edge: var(--p-edge, rgba(102,81,246,.32));
  --mg-green: var(--p-green, #3ecf6d);
  --mg-green-soft: var(--p-green-soft, rgba(62,207,109,.12));
  --mg-mono: var(--p-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, monospace);
  color: var(--mg-text);
}
.mg-wrap{ max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mg-band{ background: var(--mg-band); border-top: 1px solid var(--mg-line); border-bottom: 1px solid var(--mg-line); }
.mg-sec{ padding: 72px 0; }
.mg-sec h2{ margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; color: var(--mg-text); text-wrap: balance; }
.mg-lead{ margin: 0; max-width: 68ch; color: var(--mg-text-2); font-size: 17px; line-height: 1.6; }
.mg-kicker{ display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mg-violet-ink); margin-bottom: 14px; }

/* Hero: copy on the left, an example migration plan on the right */
.mg-hero{ padding: 64px 0 56px; }
.mg-hero-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.mg-hero h1{ margin: 0 0 16px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.03em; color: var(--mg-text); text-wrap: balance; }
.mg-sub{ margin: 0 0 26px; color: var(--mg-text-2); font-size: 18px; line-height: 1.6; max-width: 56ch; }
.mg-ctas{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mg-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #7a66ff, var(--mg-violet)); box-shadow: 0 8px 24px rgba(102,81,246,.35);
  transition: transform .15s ease, filter .15s ease; }
.mg-btn:hover{ filter: brightness(1.08); transform: translateY(-1px); }
.mg-btn:focus-visible, .mg-link:focus-visible{ outline: 2px solid var(--mg-violet-ink); outline-offset: 3px; }
.mg-link{ color: var(--mg-violet-ink); font-weight: 600; text-decoration: none; padding: 10px 6px; }
.mg-link:hover{ text-decoration: underline; text-underline-offset: 3px; }
.mg-facts{ display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--mg-text-2); font-size: 14px; }
.mg-facts li{ display: flex; align-items: center; gap: 8px; }
.mg-facts li::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mg-green); flex: 0 0 auto; }

.mg-plan{ position: relative; border-radius: 18px; border: 1px solid var(--mg-edge); background: var(--mg-surf);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(102,81,246,.08); overflow: hidden; }
.mg-plan-head{ display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--mg-line); }
.mg-plan-route{ display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--mg-text); }
.mg-plan-route svg{ width: 18px; height: 18px; color: var(--mg-violet-ink); }
.mg-plan-tag{ margin-left: auto; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-mid);
  border: 1px solid var(--mg-line-2); border-radius: 999px; padding: 4px 9px; }
.mg-plan table{ width: 100%; border-collapse: collapse; font-size: 14px; }
.mg-plan th, .mg-plan td{ padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--mg-line); }
.mg-plan th{ font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-mid); }
.mg-plan td{ color: var(--mg-text-2); }
.mg-plan td:first-child{ color: var(--mg-text); }
.mg-plan .num{ text-align: right; font-family: var(--mg-mono); font-variant-numeric: tabular-nums; color: var(--mg-text); }
.mg-plan-fields{ display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--mg-line); }
.mg-chip{ font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--mg-line-2); color: var(--mg-text-2); }
.mg-chip b{ color: var(--mg-text); font-weight: 600; }
.mg-chip.ok{ border-color: rgba(62,207,109,.35); background: var(--mg-green-soft); }
.mg-chip.new{ border-color: var(--mg-edge); background: var(--mg-violet-soft); }
.mg-chip.note{ border-color: rgba(232,176,74,.35); background: rgba(232,176,74,.10); }
.mg-plan-foot{ display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.mg-plan-total{ font-size: 14px; color: var(--mg-text-2); }
.mg-plan-total b{ font-family: var(--mg-mono); font-variant-numeric: tabular-nums; color: var(--mg-text); }
.mg-plan-price{ margin-left: auto; font-weight: 700; font-size: 15px; color: var(--mg-green); }

/* Routes */
.mg-crms{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.mg-crm{ display: flex; align-items: center; justify-content: center; height: 92px; border-radius: 14px;
  border: 1px solid var(--mg-line-2); background: var(--mg-surf); }
.mg-crm img{ display: block; width: auto; opacity: .9; }
.mg-crm .l-pd{ height: 30px; } .mg-crm .l-zoho{ height: 32px; } .mg-crm .l-capsule{ height: 34px; }
.mg-routes{ display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mg-routes li{ font-size: 14.5px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--mg-line-2); color: var(--mg-text-2); }
.mg-routes li b{ color: var(--mg-text); font-weight: 600; }

/* Steps: a real sequence, so they are numbered */
.mg-steps{ counter-reset: mgstep; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.mg-steps li{ counter-increment: mgstep; position: relative; padding: 20px 18px; border-radius: 14px; border: 1px solid var(--mg-line-2); background: var(--mg-surf); }
.mg-steps li::before{ content: counter(mgstep); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--mg-violet); margin-bottom: 12px; }
.mg-steps h3{ margin: 0 0 6px; font-size: 16.5px; line-height: 1.3; color: var(--mg-text); }
.mg-steps p{ margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--mg-text-2); }

/* What moves */
.mg-table-wrap{ overflow-x: auto; margin-top: 28px; border-radius: 14px; border: 1px solid var(--mg-line-2); }
.mg-table{ width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; background: var(--mg-surf); }
.mg-table th, .mg-table td{ padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mg-line); }
.mg-table tr:last-child td{ border-bottom: 0; }
.mg-table thead th{ font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-mid); background: var(--mg-surf-2); }
.mg-table td:first-child{ width: 26%; font-weight: 600; color: var(--mg-text); }
.mg-table td{ color: var(--mg-text-2); line-height: 1.55; }
.mg-stays{ margin-top: 26px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--mg-line-2); }
.mg-stays h3{ margin: 0 0 8px; font-size: 16px; color: var(--mg-text); }
.mg-stays p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--mg-text-2); }

/* Why this tool: one lead item and three smaller ones */
.mg-why{ display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 30px; }
.mg-why article{ padding: 22px 22px 24px; border-radius: 16px; border: 1px solid var(--mg-line-2); background: var(--mg-surf); }
.mg-why article:first-child{ grid-row: span 2; border-color: var(--mg-edge); background: linear-gradient(180deg, var(--mg-violet-soft), var(--mg-surf) 70%); }
.mg-why h3{ margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--mg-text); }
.mg-why article:first-child h3{ font-size: 22px; }
.mg-why p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--mg-text-2); }
.mg-why .mg-note{ margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(232,176,74,.3); background: rgba(232,176,74,.08);
  font-family: var(--mg-mono); font-size: 12.5px; line-height: 1.6; color: var(--mg-text-2); }
.mg-why .mg-note b{ color: var(--mg-text); font-weight: 600; }

/* Pricing */
.mg-price{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.mg-price-card{ padding: 26px 24px; border-radius: 16px; border: 1px solid var(--mg-line-2); background: var(--mg-surf); }
.mg-price-card.free{ border-color: rgba(62,207,109,.4); }
.mg-price-amt{ font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--mg-text); line-height: 1; }
.mg-price-amt small{ font-size: 15px; font-weight: 500; color: var(--mg-text-2); letter-spacing: 0; }
.mg-price-card h3{ margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-violet-ink); }
.mg-price-card.free h3{ color: var(--mg-green); }
.mg-price-card p{ margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--mg-text-2); }

/* Data handling */
.mg-data{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.mg-data div{ padding: 20px; border-radius: 14px; border: 1px solid var(--mg-line-2); }
.mg-data h3{ margin: 0 0 6px; font-size: 16px; color: var(--mg-text); }
.mg-data p{ margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mg-text-2); }

/* FAQ */
.mg-faq{ margin-top: 26px; display: grid; gap: 10px; max-width: 860px; }
.mg-faq details{ border-radius: 12px; border: 1px solid var(--mg-line-2); background: var(--mg-surf); }
.mg-faq summary{ cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; font-size: 16px; color: var(--mg-text); position: relative; }
.mg-faq summary::-webkit-details-marker{ display: none; }
.mg-faq summary::after{ content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--mg-violet-ink); }
.mg-faq details[open] summary::after{ content: "\2212"; }
.mg-faq summary:focus-visible{ outline: 2px solid var(--mg-violet-ink); outline-offset: -2px; border-radius: 12px; }
.mg-faq .ans{ padding: 0 18px 18px; font-size: 15px; line-height: 1.65; color: var(--mg-text-2); }

/* Closing call */
.mg-end{ text-align: center; padding: 72px 0 84px; }
.mg-end h2{ margin: 0 auto 12px; max-width: 22ch; }
.mg-end .mg-lead{ margin: 0 auto 24px; }
.mg-tm{ max-width: 1120px; margin: 0 auto; padding: 0 20px 28px; font-size: 12px; line-height: 1.5; color: var(--mg-mid); }

@media (max-width: 980px){
  .mg-hero-grid{ grid-template-columns: 1fr; gap: 36px; }
  .mg-steps{ grid-template-columns: 1fr 1fr; }
  .mg-why{ grid-template-columns: 1fr 1fr; }
  .mg-why article:first-child{ grid-row: auto; grid-column: span 2; }
}
@media (max-width: 640px){
  .mg-sec{ padding: 52px 0; }
  .mg-wrap{ padding: 0 16px; }
  .mg-hero{ padding: 40px 0 44px; }
  .mg-crms{ grid-template-columns: 1fr; }
  .mg-crm{ height: 76px; }
  .mg-steps, .mg-why, .mg-price, .mg-data{ grid-template-columns: 1fr; }
  .mg-why article:first-child{ grid-column: auto; }
  .mg-plan th, .mg-plan td{ padding: 9px 14px; }
  .mg-btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .mg-btn{ transition: none; }
  .mg-btn:hover{ transform: none; }
}

/* Light theme: the dark palette is switched off, so set the light one here.
   The light logos have wide transparent margins, hence the larger boxes. */
html[data-theme="light"] .mg{
  --mg-ink: #f7f6fd; --mg-band: #f1effb; --mg-surf: #ffffff; --mg-surf-2: #f7f6fd;
  --mg-text: #14141a; --mg-text-2: #383e4f; --mg-mid: #5b6070;
  --mg-line: rgba(20,20,40,.08); --mg-line-2: rgba(20,20,40,.12);
  --mg-violet-ink: #5b45e8; --mg-violet-soft: rgba(102,81,246,.08); --mg-edge: rgba(102,81,246,.30);
  --mg-green: #17a34a; --mg-green-soft: rgba(23,163,74,.08);
}
html[data-theme="light"] .mg-plan{ box-shadow: 0 1px 2px rgba(20,20,40,.04), 0 18px 44px rgba(20,20,40,.08); }
html[data-theme="light"] .mg-crm img{ opacity: 1; }
html[data-theme="light"] .mg-crm .l-pd{ height: 86px; margin: -28px 0; }
html[data-theme="light"] .mg-crm .l-zoho{ height: 116px; margin: -42px 0; }
html[data-theme="light"] .mg-crm .l-capsule{ height: 36px; }

/* Checklist: six steps, three per row */
.mg-steps.mg-steps-6{ grid-template-columns: repeat(3, minmax(0,1fr)); }


/* FAQ uses the full width of the page */
.mg-faq{ max-width: none; }

/* Six routes in one row on a full width screen */
@media (min-width: 1100px){
  .mg-routes{ display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
  .mg-routes li{ text-align: center; white-space: nowrap; font-size: 14px; padding: 9px 8px; }
}
@media (max-width: 640px){
  .mg-routes{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mg-routes li{ text-align: center; font-size: 13.5px; padding: 8px 6px; }
}


/* The extension block follows the data section on the same ground: half the gap */
.mg-sec.mg-sec-joined{ padding-top: 0; }

/* Ln2CRM strip (the blog CTA component) sits flush, no extra margins */
.mg .ln-post .ln-cta{ margin: 0; }
@media (max-width: 980px){ .mg-steps.mg-steps-6{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .mg-steps.mg-steps-6{ grid-template-columns: 1fr; } }

/* The contact email, easy to spot: under the hero buttons and in the closing band */
.mg-hero-mail{ margin: 16px 0 0; font-size: 15px; color: var(--mg-text-2); }
.mg-hero-mail a, .mg-mail a{ color: var(--mg-violet-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--mg-edge); }
.mg-hero-mail a:hover, .mg-mail a:hover{ border-bottom-color: currentColor; }
.mg-mail{ margin: 22px auto 0; max-width: 60ch; font-size: 16px; color: var(--mg-text-2); }
