/* ===================================================================
   "We move you in. Free." migration offer (Ben, 2026-10-19)
   Four placements, all built from template-parts/move-in-*.php:
     1. .mi-welcome   returning-visitor line in the home hero
     2. .mi-offer     the offer section, two paths (home, pricing,
                      migration wizards, every vs page)
     3. .mi-rev       "nothing to lose" block (inside .mi-offer) and
        .mi-chipline  its short version under trial buttons
     4. .mi-corner    corner card on the vs pages
   Behaviour (reveal, once per visitor, events): assets/js/move-in.js.
   Prototype: prototypes/migration-offer/index.html.
   Loads on every page (enqueued in functions.php), like main.css.
   =================================================================== */

:root {
  --mi-green:       var(--green);
  --mi-green-tint:  #f0fdf4;
  --mi-green-line:  #bbf7d0;
  --mi-dark-line:   #3a3a3a;
  --mi-dark-ink-2:  #9a9a9a;
  --mi-radius:      9px;
  --mi-radius-card: 16px;
  --mi-shadow-card: 0 12px 40px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  --mi-icon:        18px;
}

/* Shared icon look: Lucide geometry, 1.8 stroke. */
.mi-offer svg, .mi-welcome svg, .mi-corner svg, .mi-chipline svg {
  width: var(--mi-icon); height: var(--mi-icon); flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* The hidden attribute must win over the display values below. */
.mi-welcome[hidden], .mi-corner[hidden] { display: none; }

@keyframes mi-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- 1. Returning-visitor line (home hero) ------------------------ */
.mi-welcome {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 24px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--mi-green-line); background: var(--mi-green-tint); border-radius: 99px;
  font-size: 14px; line-height: 1.4; color: var(--ink);
  animation: mi-rise .5s var(--ease) both;
}
.mi-welcome strong { font-weight: 600; }
.mi-welcome-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mi-green); flex-shrink: 0; }
.mi-welcome a {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 13px var(--font); color: #fff; background: var(--ink);
  padding: 6px 12px; border-radius: 99px; text-decoration: none; transition: opacity .15s;
}
.mi-welcome a:hover { opacity: .85; }
.mi-welcome a svg { width: 14px; height: 14px; }

/* --- 2. The offer -------------------------------------------------- */
.mi-offer {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5.6vw, 48px);
  text-align: center;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px; /* clears the sticky nav when a "See how" link jumps here */
}
.mi-eyebrow {
  font: 600 12px var(--font); line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.mi-h2 {
  font: 700 clamp(30px, 4.6vw, 48px)/1.08 var(--font); letter-spacing: -0.04em;
  color: var(--ink); margin: 0 0 18px;
}
.mi-h2 em { font-style: normal; color: var(--mi-green); }
.mi-line { font-size: 19px; font-weight: 500; line-height: 1.45; color: var(--ink); margin: 0 0 6px; }
.mi-line-dim { color: var(--ink-2); }

.mi-movers {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  max-width: 760px; margin: 34px auto 40px;
}
.mi-chip {
  font: 600 13px var(--font); padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.mi-chip-gript { background: var(--ink); border-color: var(--ink); color: #fff; }
.mi-arrow { display: inline-flex; color: var(--ink-3); margin: 0 4px; }

.mi-paths {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 860px; margin: 0 auto; text-align: left;
}
.mi-path {
  display: flex; flex-direction: column;
  padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--mi-radius-card);
  background: var(--surface); color: var(--ink);
}
.mi-path-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.mi-path-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 600 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.mi-path-dark .mi-path-tag { color: var(--mi-dark-ink-2); }
.mi-path h3 { font: 700 24px/1.15 var(--font); letter-spacing: -0.02em; margin: 0 0 18px; color: inherit; }
.mi-path ol { list-style: none; display: grid; gap: 12px; margin: 0 0 26px; padding: 0; }
.mi-path li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.mi-n {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--line); font: 700 12px var(--font); color: var(--ink-2);
}
.mi-path-dark .mi-n { border-color: var(--mi-dark-line); color: var(--mi-dark-ink-2); }
.mi-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--font); padding: 13px 22px; border-radius: var(--mi-radius);
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  text-decoration: none; transition: opacity .15s;
}
.mi-btn:hover { opacity: .85; }
.mi-path-dark .mi-btn { background: #fff; color: var(--ink); border-color: #fff; }
.mi-foot { font-size: 13.5px; color: var(--ink-3); text-align: center; margin: 12px 0 0; }
.mi-fine { font-size: 13.5px; color: var(--ink-2); margin: 26px 0 0; } /* unused since 2026-10-19, see .mi-free */

/* "Free on every plan." inside the dark card, right above its button. The
   button's margin-top:auto still pins it to the bottom; this sits on top of it. */
.mi-free {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #fff;
}
.mi-free svg { color: var(--mi-green); width: 16px; height: 16px; }
.mi-path ol + .mi-free { margin-top: auto; } /* lets the line ride down with the button when the cards differ in height */
.mi-free + .mi-btn { margin-top: 0; }        /* otherwise both auto margins split the gap and the line floats mid-card */

/* --- 3. Nothing to lose ------------------------------------------- */
.mi-rev {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  max-width: 860px; margin: clamp(48px, 6vw, 72px) auto 0; text-align: left;
}
.mi-rev h3 { font: 700 clamp(26px, 3.4vw, 34px)/1.12 var(--font); letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.mi-rev h3 span { display: block; }
.mi-rev h3 .mi-rev-dim { color: var(--ink-2); }
.mi-rev ul { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.mi-rev li { display: flex; gap: 12px; font-size: 16.5px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.mi-rev li svg { color: var(--mi-green); margin-top: 2px; }

.mi-chipline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-2);
}
.mi-chipline span { display: inline-flex; align-items: center; gap: 6px; }
.mi-chipline svg { width: 15px; height: 15px; color: var(--mi-green); }
.vs-hero .mi-chipline { justify-content: flex-start; } /* migration wizards hero is left-aligned */

/* The full comparison page has its own navy palette (--fc-*, full-comparison.css).
   Re-point the ink tokens inside the offer and hero line so they match it. */
.fullcmp .mi-offer, .fullcmp .mi-welcome { --ink: var(--fc-head); --ink-2: var(--fc-muted); --line: var(--fc-line); }
.pricing-grid + .mi-chipline { margin: 0 auto clamp(32px, 4vw, 48px); padding: 0 clamp(20px, 5.6vw, 48px); }

/* --- 4. Corner card (vs pages) ------------------------------------ */
.mi-corner {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  width: min(340px, calc(100vw - 40px));
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--mi-shadow-card);
  animation: mi-rise .5s var(--ease) both;
}
.mi-corner-x {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer;
}
.mi-corner-x:hover { background: var(--bg); color: var(--ink); }
.mi-corner-eyebrow {
  font: 600 12px var(--font); line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mi-green); margin-bottom: 10px; padding-right: 28px;
}
.mi-corner-title { font: 700 19px/1.2 var(--font); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; padding-right: 24px; }
.mi-corner p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 14px; }
.mi-corner a {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 14px var(--font); padding: 10px 16px; border-radius: var(--mi-radius);
  background: var(--ink); color: #fff; text-decoration: none; transition: opacity .15s;
}
.mi-corner a:hover { opacity: .85; }

@media (max-width: 768px) {
  .mi-paths, .mi-rev { grid-template-columns: 1fr; }
  .mi-rev { gap: 24px; }
  .mi-path { padding: 24px 20px 22px; }
  .mi-line { font-size: 17px; }
  .mi-welcome { border-radius: 14px; padding: 10px 12px; }
  /* Full-width card, lifted above the sticky mobile CTA bar (--m-bar, mobile.css). */
  .mi-corner { left: 12px; right: 12px; bottom: calc(12px + var(--m-bar, 0px) + env(safe-area-inset-bottom)); width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mi-welcome, .mi-corner { animation: none; }
}
