/* Lovelys v6 — static patch styles
   Loaded after lovelys-v5.css on every page. */

/* ---------------------------------------------------------------
   0. Performance / smoothness
   --------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Promote the big animated blobs to their own compositor layer so they never
   repaint the page while scrolling. */
.animate-orb,
.hero-aurora::before,
.hero-aurora::after,
.text-shine,
.sheen,
.lift {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Huge blur radii are the single biggest frame-time cost on phones. */
@media (max-width: 900px) {
  .animate-orb { filter: blur(70px) !important; opacity: 0.28 !important; }
  .glass { backdrop-filter: blur(10px) !important; }
}
/* Skip layout/paint for sections that are far off screen. */
main > section,
main > div > section,
[data-lv-cv] {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}
/* Pause every animation while the tab is hidden. */
html[data-lv-hidden="1"] *,
html[data-lv-hidden="1"] *::before,
html[data-lv-hidden="1"] *::after {
  animation-play-state: paused !important;
}
img, video { content-visibility: auto; }

/* ---------------------------------------------------------------
   1. Shared v6 surface
   --------------------------------------------------------------- */
.lv6-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 6, 12, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
  overscroll-behavior: contain;
}
.lv6-modal.open { opacity: 1; }
.lv6-card {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #10101a;
  color: #f4f4f7;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
}
.lv6-modal.open .lv6-card { transform: none; }
.lv6-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lv6-card p.lv6-sub {
  margin: 0 0 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(244, 244, 247, 0.62);
}
.lv6-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lv6-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.lv6-btn:hover { background: rgba(255, 255, 255, 0.12); }
.lv6-btn:active { transform: scale(0.97); }
.lv6-btn.primary {
  background: linear-gradient(120deg, #ff5f9e, #7c5cff);
  border-color: transparent;
  color: #fff;
}
.lv6-btn.ghost { background: transparent; }
.lv6-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.lv6-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.lv6-input:focus { border-color: rgba(255, 95, 158, 0.7); }
.lv6-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 244, 247, 0.5);
  margin: 14px 0 6px;
}
.lv6-code {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre;
  margin: 8px 0 0;
}
.lv6-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lv6-pill.ok { color: #7ef0b2; border-color: rgba(126, 240, 178, 0.4); background: rgba(126, 240, 178, 0.08); }
.lv6-pill.wait { color: #ffd479; border-color: rgba(255, 212, 121, 0.4); background: rgba(255, 212, 121, 0.08); }
.lv6-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lv6-domain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.85rem;
}
.lv6-x {
  border: none;
  background: transparent;
  color: rgba(244, 244, 247, 0.55);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 6px;
}
.lv6-x:hover { color: #ff7a9c; }
.lv6-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 2147483001;
  background: #14141f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.lv6-toast.open { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------
   2. Step-by-step customiser
   --------------------------------------------------------------- */
.lv6-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, #ff5f9e, #7c5cff);
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.35);
  transform: translateZ(0);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lv6-fab:hover { transform: translateY(-2px); }
.lv6-steps { display: grid; gap: 4px; }
.lv6-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 14px;
}
.lv6-progress > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5f9e, #7c5cff);
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lv6-stepno {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8fbd;
}
.lv6-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lv6-sw {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease;
}
.lv6-sw:hover { transform: scale(1.08); }
.lv6-sw.sel { border-color: #fff; }
.lv6-choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 11px 13px;
  color: inherit;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.lv6-choice:hover { background: rgba(255, 255, 255, 0.09); }
.lv6-choice.sel { border-color: #ff5f9e; background: rgba(255, 95, 158, 0.12); }
.lv6-choice small { display: block; opacity: 0.6; font-size: 0.75rem; margin-top: 2px; }
.lv6-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lv6-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  position: sticky;
  bottom: -22px;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, rgba(16, 16, 26, 0), #10101a 32%);
}

/* ---------------------------------------------------------------
   3. Support FAQ accordion
   --------------------------------------------------------------- */
.lv6-faq { display: grid; gap: 10px; margin-top: 14px; }
.lv6-faq details {
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
  overflow: hidden;
}
.lv6-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lv6-faq summary::-webkit-details-marker { display: none; }
.lv6-faq summary::after {
  content: "+";
  font-weight: 700;
  opacity: 0.55;
  transition: transform 200ms ease;
}
.lv6-faq details[open] summary::after { content: "−"; }
.lv6-faq .lv6-answer {
  padding: 0 16px 15px;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.75;
}
.lv6-faq-search {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: inherit;
  padding: 11px 16px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

/* Custom-domain chip in the public portfolio nav */
.lv6-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid currentColor;
  opacity: 0.75;
  text-decoration: none;
}

.lv6-card, .lv6-card * { box-sizing: border-box; }
.lv6-steps, .lv6-card > * { min-width: 0; max-width: 100%; }
