/* ===================================================================
   effects.css — site-wide visual upgrades:
   hero v2, animated mesh, device mockups, sticky CTAs,
   stats strip, scroll polish, conversion-page polish.
   Layered on top of style.css / shared.css.
   =================================================================== */

/* -- THEME COLOR + GENERAL ------------------------------------------ */
html { color-scheme: dark; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* -- BREAKPOINT TOKENS ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* -- HERO V2 (homepage) --------------------------------------------- */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  padding: 8rem 5vw 5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2 .hero-mesh {
  position: absolute; inset: -10%;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 75% 25%, rgba(110,255,232,0.18) 0%, transparent 60%),
    radial-gradient(50% 50% at 15% 70%, rgba(167,139,250,0.16) 0%, transparent 60%),
    radial-gradient(40% 40% at 85% 85%, rgba(110,255,232,0.10) 0%, transparent 65%);
  filter: blur(40px);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
.hero-v2 .hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/></svg>");
}
.hero-v2 .hero-left { position: relative; z-index: 1; max-width: 640px; }
.hero-v2 .hero-eyebrow-row {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: rgba(110,255,232,0.06);
  border: 1px solid rgba(110,255,232,0.18);
  padding: 0.4rem 0.9rem; border-radius: 100px;
  margin-bottom: 1.6rem;
}
.hero-v2 .hero-eyebrow-row .stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.85rem; }
.hero-v2 .hero-eyebrow-row .eyebrow-text {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); font-weight: 500;
}
.hero-v2 h1.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-v2 h1.hero-h1 .word {
  display: inline-block; opacity: 0; transform: translateY(28px);
  animation: wordReveal 0.7s cubic-bezier(.22,1,.36,1) forwards;
  margin-right: 0.25em;
}
.hero-v2 h1.hero-h1 .word.line-break { display: block; height: 0; margin: 0; }
.hero-v2 h1.hero-h1 .word.accent {
  background: linear-gradient(120deg, var(--accent) 0%, #b2fff0 50%, var(--accent3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-v2 h1.hero-h1 .word.muted { color: var(--muted); font-weight: 600; }
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero-v2 h1.hero-h1 .word:nth-child(1) { animation-delay: 0.05s; }
.hero-v2 h1.hero-h1 .word:nth-child(2) { animation-delay: 0.13s; }
.hero-v2 h1.hero-h1 .word:nth-child(3) { animation-delay: 0.21s; }
.hero-v2 h1.hero-h1 .word:nth-child(4) { animation-delay: 0.29s; }
.hero-v2 h1.hero-h1 .word:nth-child(5) { animation-delay: 0.37s; }
.hero-v2 h1.hero-h1 .word:nth-child(6) { animation-delay: 0.45s; }
.hero-v2 h1.hero-h1 .word:nth-child(7) { animation-delay: 0.53s; }
.hero-v2 h1.hero-h1 .word:nth-child(8) { animation-delay: 0.61s; }

.hero-v2 .hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 520px; line-height: 1.75; margin-bottom: 2rem;
}

.hero-v2 .hero-trust {
  display: flex; align-items: flex-start; gap: 1rem;
  background: linear-gradient(135deg, rgba(21,21,31,0.8), rgba(30,30,42,0.5));
  border: 1px solid rgba(110,255,232,0.18);
  border-radius: 14px; padding: 1rem 1.2rem;
  margin-bottom: 2rem; max-width: 540px;
  backdrop-filter: blur(8px);
}
.hero-v2 .hero-trust .trust-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: var(--bg); flex-shrink: 0;
}
.hero-v2 .hero-trust .trust-text { flex: 1; min-width: 0; }
.hero-v2 .hero-trust .trust-stars {
  color: var(--accent); font-size: 0.85rem; letter-spacing: 0.1em; line-height: 1;
}
.hero-v2 .hero-trust .trust-quote {
  color: var(--text); font-size: 0.92rem; line-height: 1.5;
  margin: 0.3rem 0 0.3rem; font-style: italic;
}
.hero-v2 .hero-trust .trust-author {
  font-size: 0.78rem; color: var(--muted);
}

.hero-v2 .hero-actions-v2 {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.btn-primary-lg {
  background: var(--accent); color: var(--bg);
  padding: 1rem 2.2rem; border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(110,255,232,0.2), 0 0 0 0 rgba(110,255,232,0.4);
  position: relative; overflow: hidden;
}
.btn-primary-lg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.7s;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(110,255,232,0.35); }
.btn-primary-lg:hover::before { transform: translateX(100%); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.15); color: var(--text);
  padding: 1rem 2rem; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(110,255,232,0.04); }

.hero-v2 .hero-microsignals {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.82rem; color: var(--muted);
}
.hero-v2 .hero-microsignals span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-v2 .hero-microsignals span::before {
  content: "✓"; color: var(--accent); font-weight: 700;
}

/* DEVICE STAGE (laptop + phone composite) */
.hero-v2 .hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 480px;
}

/* BEFORE/AFTER SLIDER CARD */
.ba-card {
  width: 100%; max-width: 620px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(110,255,232,0.06);
  backdrop-filter: blur(8px);
  position: relative;
}
.ba-card::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -8%;
  height: 60px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(110,255,232,0.22) 0%, transparent 70%);
  filter: blur(20px); z-index: -1;
}
.ba-card-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 0.2rem 0.4rem 0.85rem;
}
.ba-card-head .ba-eyebrow {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem;
}
.ba-card-head strong {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); line-height: 1.3;
}
.ba-hint {
  font-size: 0.72rem; color: var(--muted); white-space: nowrap;
  background: rgba(110,255,232,0.08); border: 1px solid rgba(110,255,232,0.18);
  padding: 0.35rem 0.7rem; border-radius: 100px;
  animation: baHintPulse 2.4s ease-in-out infinite;
}
@keyframes baHintPulse {
  0%, 100% { opacity: 0.85; transform: translateX(0); }
  50%      { opacity: 1; transform: translateX(3px); }
}
.ba-frame {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden;
  background: #0a0a0f;
  cursor: ew-resize;
  user-select: none;
  container-type: inline-size;
  --reveal: 50%;
}
.ba-after, .ba-before {
  position: absolute; inset: 0;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}
.ba-tag {
  position: absolute; top: 0.7rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 100px;
  pointer-events: none; z-index: 3;
}
.ba-tag-before { left: 0.7rem; background: rgba(20,33,61,0.9); color: #fff; }
.ba-tag-after  { right: 0.7rem; background: var(--accent); color: var(--bg); }
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--reveal); transform: translateX(-50%);
  width: 44px; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; touch-action: none;
}
.ba-handle:focus { outline: none; }
.ba-handle:focus-visible .ba-handle-knob { box-shadow: 0 0 0 3px rgba(110,255,232,0.4), 0 8px 20px rgba(0,0,0,0.4); }
.ba-handle-line {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 0 18px rgba(110,255,232,0.35);
}
.ba-handle-knob {
  position: relative; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: #14213d;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.15s ease;
}
.ba-handle:hover .ba-handle-knob,
.ba-handle:active .ba-handle-knob { transform: scale(1.08); }

.ba-after img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; pointer-events: none; }

/* DATED JAMES SEAL & SON mockup (the "before") — ~2014 template-era */
.mock-james-old {
  width: 100%; height: 100%;
  background: #f3f3f0;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1cqw;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mjo-topbar {
  background: #14334a; color: #cfd8dd;
  display: flex; justify-content: space-between; align-items: center; gap: 1.6em;
  padding: 0.45em 1.2em; font-size: 0.74em; border-bottom: 1px solid #0e2737;
}
.mjo-tb-right b { color: #ffd866; }
.mjo-banner {
  background: linear-gradient(180deg, #2c6a8a 0%, #1d4a66 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 1em 1.3em 0; gap: 1em;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.mjo-banner-left { color: #fff; padding-bottom: 0.7em; }
.mjo-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.9em; line-height: 1; }
.mjo-title span { font-size: 0.45em; letter-spacing: 0.18em; vertical-align: middle; opacity: 0.7; margin-left: 0.4em; font-family: Arial, sans-serif; }
.mjo-tag { font-size: 0.74em; color: rgba(255,255,255,0.75); margin-top: 0.25em; }
.mjo-nav { display: flex; gap: 0.1em; align-self: stretch; align-items: flex-end; }
.mjo-nav span {
  background: rgba(255,255,255,0.04); color: #fff;
  padding: 0.6em 0.85em; font-size: 0.74em; font-weight: 600;
  border-top-left-radius: 3px; border-top-right-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08); border-bottom: none;
}
.mjo-nav span.active { background: #f3f3f0; color: #1d4a66; }
.mjo-hero {
  position: relative; aspect-ratio: 16 / 6; flex-shrink: 0;
  overflow: hidden; border-bottom: 4px solid #f5a623;
  background: #2a3f4f;
}
.mjo-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.7) saturate(0.85);
}
.mjo-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,51,74,0.85) 0%, rgba(20,51,74,0.55) 45%, rgba(20,51,74,0.1) 100%);
}
.mjo-hero-overlay {
  position: absolute; left: 1.4em; top: 50%; transform: translateY(-50%);
  color: #fff; max-width: 60%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 1;
}
.mjo-hero-eyebrow {
  display: inline-block; font-size: 0.7em; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(245,166,35,0.95); color: #14334a; font-weight: 700;
  padding: 0.3em 0.8em; border-radius: 2px; text-shadow: none; margin-bottom: 0.5em;
}
.mjo-hero-overlay h2 { font-family: Georgia, serif; font-weight: 700; font-size: 1.9em; margin: 0 0 0.35em; line-height: 1.05; }
.mjo-hero-overlay h2 em { font-style: italic; color: #ffd866; }
.mjo-hero-overlay p { font-size: 0.82em; margin: 0 0 0.8em; line-height: 1.45; opacity: 0.95; max-width: 26em; }
.mjo-hero-btn {
  display: inline-block; background: #f5a623; color: #fff;
  padding: 0.55em 1em; font-size: 0.78em; font-weight: 700;
  border-radius: 3px; text-shadow: none;
  box-shadow: 0 2px 0 #c47e0e;
  margin-right: 0.5em;
}
.mjo-hero-btn.ghost { background: transparent; border: 2px solid #fff; box-shadow: none; }
.mjo-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9em;
  padding: 1em 1.3em 0.4em; align-items: stretch;
}
.mjo-feature {
  background: #fff; border: 1px solid #ddd;
  padding: 0; text-align: left;
  display: flex; flex-direction: column;
  border-top: 3px solid #2c6a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mjo-feature-img {
  height: 3.6em;
  background-size: cover; background-position: center;
  background-color: #c9d4dd;
}
.mjo-feat-1 { background: linear-gradient(135deg, #5a7d8f, #2c4858); position: relative; }
.mjo-feat-2 { background: linear-gradient(135deg, #b87333, #6b4019); position: relative; }
.mjo-feat-3 { background: linear-gradient(135deg, #b50000, #6b0000); position: relative; }
.mjo-feat-1::after, .mjo-feat-2::after, .mjo-feat-3::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(0,0,0,0.25), transparent 55%);
}
.mjo-feature strong { font-family: Georgia, serif; font-size: 0.92em; color: #1d4a66; font-weight: 700; padding: 0.7em 0.9em 0.2em; }
.mjo-feature p { font-size: 0.7em; color: #666; line-height: 1.5; margin: 0; padding: 0 0.9em 0.5em; flex: 1; }
.mjo-feat-link { color: #2c6a8a; font-size: 0.7em; font-weight: 700; padding: 0 0.9em 0.7em; }
.mjo-trust {
  display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: center;
  padding: 0.7em 1.3em; background: #fff; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
}
.mjo-trust-pill { font-size: 0.72em; color: #2c6a8a; font-weight: 700; }
.mjo-cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #f5a623; color: #14334a;
  padding: 0.7em 1.3em; gap: 1em;
  border-bottom: 2px solid #c47e0e;
}
.mjo-cta-bar strong { font-family: Georgia, serif; font-size: 0.95em; }
.mjo-cta-bar .mjo-hero-btn { background: #14334a; color: #fff; box-shadow: 0 2px 0 #0a1f2e; margin: 0; }
.mjo-footer {
  background: #2c2c2c; color: #aaa;
  font-size: 0.72em;
  margin-top: auto;
}
.mjo-foot-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1em;
  padding: 0.9em 1.3em;
}
.mjo-foot-cols h5 { color: #fff; font-family: Georgia, serif; font-size: 0.95em; margin: 0 0 0.35em; font-weight: 700; }
.mjo-foot-cols p { margin: 0; line-height: 1.55; font-size: 0.95em; }
.mjo-foot-base { border-top: 1px solid #444; padding: 0.5em 1.3em; text-align: center; font-size: 0.9em; color: #888; }

@media (max-width: 1100px) {
  .ba-card { max-width: 540px; }
}
@media (max-width: 600px) {
  .ba-card-head { flex-direction: column; align-items: flex-start; }
  .ba-card-head strong { font-size: 0.95rem; }
  .ba-hint { font-size: 0.68rem; }
}
.device-stage {
  position: relative; width: 100%; max-width: 580px; aspect-ratio: 5 / 4;
  perspective: 1400px;
}
.device-laptop {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  animation: laptopFloat 9s ease-in-out infinite;
}
@keyframes laptopFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-6deg) rotateX(3deg) translateY(-8px); }
}
.device-laptop .device-bezel {
  background: linear-gradient(145deg, #2a2a36, #1a1a24);
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 12px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
.device-laptop .device-bezel::before {
  content: ""; position: absolute; top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #0a0a10, #1a1a24);
}
.device-laptop .device-screen {
  background: #0a0a0f; border-radius: 6px;
  aspect-ratio: 16 / 10; overflow: hidden;
  position: relative;
  container-type: inline-size;
}
.device-laptop .device-base {
  height: 14px;
  background: linear-gradient(180deg, #2a2a36 0%, #14141c 100%);
  border-radius: 0 0 16px 16px;
  margin: 0 -3%;
  box-shadow: 0 24px 40px rgba(0,0,0,0.45);
  position: relative;
}
.device-laptop .device-base::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24%; height: 4px;
  background: #0a0a10; border-radius: 0 0 6px 6px;
}

.device-phone {
  position: absolute; right: -2%; bottom: -8%;
  width: 26%; aspect-ratio: 9 / 19;
  background: linear-gradient(145deg, #2a2a36, #14141c);
  border-radius: 22px;
  padding: 8px;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06);
  transform-style: preserve-3d;
  animation: phoneFloat 9s ease-in-out -1.5s infinite;
  z-index: 2;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(8deg) rotateX(-2deg) translateY(0); }
  50%      { transform: rotateY(6deg) rotateX(-3deg) translateY(-10px); }
}
.device-phone .device-phone-screen {
  background: linear-gradient(160deg, #0d0d14 0%, #15151f 100%);
  border-radius: 16px; height: 100%;
  display: flex; flex-direction: column; padding: 14px 10px; gap: 6px;
  position: relative; overflow: hidden;
}
.device-phone .device-phone-screen::before {
  content: ""; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); width: 30%; height: 5px;
  background: #000; border-radius: 100px;
}
.device-phone .device-phone-screen { padding: 0; container-type: inline-size; }

/* JAMES SEAL & SON laptop mockup */
.mock-james {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #fbf9f4 0%, #efe8da 100%);
  color: #14213d;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1cqw;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mock-james .mj-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1em 1.6em; background: #fff;
  border-bottom: 1px solid rgba(20,33,61,0.06);
}
.mj-logo strong { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.25em; display: block; line-height: 1; }
.mj-logo span { font-size: 0.65em; color: #8a8a8a; letter-spacing: 0.14em; text-transform: uppercase; }
.mj-links { display: flex; gap: 1.4em; font-size: 0.85em; color: #14213d; }
.mj-call { background: #f5b800; color: #14213d; font-weight: 700; padding: 0.6em 1.2em; border-radius: 6px; font-size: 0.85em; white-space: nowrap; }
.mj-body { flex: 1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.4em; padding: 1.6em 2em; align-items: start; min-height: 0; }
.mj-pill { display: inline-block; background: rgba(26,79,180,0.08); color: #1a4fb4; font-weight: 600; font-size: 0.78em; padding: 0.4em 0.9em; border-radius: 100px; margin-bottom: 0.9em; }
.mj-h1 { font-family: 'Fraunces', serif; font-weight: 800; font-size: 3em; line-height: 1.02; letter-spacing: -0.02em; color: #14213d; margin: 0 0 0.5em; }
.mj-h1 em { font-style: normal; color: #1a4fb4; }
.mj-sub { color: #5a5a5a; font-size: 0.82em; line-height: 1.55; max-width: 26em; margin: 0 0 1.1em; }
.mj-ctas { display: flex; gap: 0.6em; margin-bottom: 1.2em; }
.mj-btn { display: inline-block; padding: 0.7em 1.3em; border-radius: 100px; font-weight: 600; font-size: 0.82em; }
.mj-btn.yellow { background: #f5b800; color: #14213d; }
.mj-btn.outline { background: transparent; border: 1px solid #14213d; color: #14213d; }
.mj-btn.full { display: block; text-align: center; }
.mj-trusts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55em; }
.mj-trust { background: #fff; border-radius: 10px; padding: 0.85em 0.7em; border: 1px solid rgba(20,33,61,0.04); display: flex; flex-direction: column; gap: 0.15em; }
.mj-trust strong { font-family: 'Fraunces', serif; font-weight: 800; font-size: 0.95em; }
.mj-trust span { color: #8a8a8a; font-size: 0.65em; line-height: 1.3; }
.mj-trust.b strong { color: #1a4fb4; }
.mj-trust.r strong { color: #c8324b; }
.mj-trust.a strong { color: #c98800; }
.mj-right { background: #fff7d4; border: 1px solid rgba(245,184,0,0.35); border-radius: 14px; padding: 1.1em 1em; display: flex; flex-direction: column; gap: 0.55em; }
.mj-right > strong { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.05em; }
.mj-right p { color: #5a5a5a; font-size: 0.75em; line-height: 1.5; margin: 0; }
.mj-list { list-style: none; margin: 0.3em 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4em; }
.mj-list li { font-size: 0.74em; color: #14213d; }

/* EMILY'S NAIL & BEAUTY LOUNGE phone mockup */
.mock-emily {
  width: 100%; height: 100%;
  background: #fdf6f1;
  color: #2d1f1c;
  font-family: 'Outfit', sans-serif;
  font-size: 2.6cqw;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.me-bar { height: 1.6em; flex-shrink: 0; position: relative; }
.me-bar span { position: absolute; top: 0.6em; height: 0.3em; border-radius: 0.2em; background: rgba(45,31,28,0.55); }
.me-bar span:first-child { left: 0.9em; width: 1.4em; }
.me-bar span:last-child { right: 0.9em; width: 1.6em; }
.me-nav { display: flex; align-items: center; justify-content: space-between; padding: 0.4em 1.1em 0.5em; }
.me-logo { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.6em; letter-spacing: -0.04em; line-height: 1; }
.me-logo i { color: #c79c93; font-style: normal; }
.me-burger { font-size: 1.5em; opacity: 0.55; line-height: 1; }
.me-hero {
  margin: 0 1em; height: 36%; flex-shrink: 0;
  border-radius: 14px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 25% 25%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 90%, rgba(45,15,12,0.45), transparent 65%),
    linear-gradient(155deg, #f1d4cd 0%, #d4a89e 35%, #a06f63 75%, #5e372e 100%);
}
.me-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 6em at 30% 35%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle 8em at 75% 80%, rgba(255,255,255,0.08), transparent 60%);
}
.me-hero-content { position: absolute; bottom: 0.9em; left: 1em; right: 1em; color: #fdf6f1; z-index: 1; }
.me-tag { font-size: 0.6em; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.92; display: block; margin-bottom: 0.35em; font-weight: 500; }
.me-h { font-family: 'Fraunces', serif; font-weight: 800; font-size: 2.2em; line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.me-cta {
  background: #2d1f1c; color: #fdf6f1;
  padding: 0.85em 1.4em; border-radius: 100px;
  font-weight: 600; font-size: 0.74em; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0.9em 1em 0; text-align: center; display: block;
}
.me-services { list-style: none; margin: 1em 1.2em 0; padding: 0; display: flex; flex-direction: column; }
.me-services li {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82em; padding: 0.55em 0;
  border-bottom: 1px solid rgba(45,31,28,0.08);
}
.me-services li:last-child { border-bottom: none; }
.me-services li b { font-family: 'Fraunces', serif; font-weight: 700; color: #8a5a52; font-size: 1em; }
.me-foot { padding: 0.9em 1em 1em; margin-top: auto; text-align: center; }
.me-foot span { font-size: 0.62em; color: rgba(45,31,28,0.5); letter-spacing: 0.16em; text-transform: uppercase; }

/* glow under laptop */
.device-stage::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -8%;
  height: 60px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(110,255,232,0.25) 0%, transparent 70%);
  filter: blur(20px); z-index: -1;
}

@media (max-width: 1100px) {
  .hero-v2 { grid-template-columns: 1fr; gap: 2rem; padding-top: 7rem; padding-bottom: 3rem; min-height: auto; }
  .hero-v2 .hero-right { min-height: 0; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .hero-v2 { padding: 6rem 5vw 2.5rem; }
  .hero-v2 .hero-right { min-height: 0; }
  .hero-v2 h1.hero-h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .hero-v2 .hero-trust { padding: 0.85rem 1rem; gap: 0.8rem; }
  .hero-v2 .hero-trust .trust-quote { font-size: 0.85rem; }
  .hero-v2 .hero-actions-v2 .btn-primary-lg,
  .hero-v2 .hero-actions-v2 .btn-ghost { flex: 1; justify-content: center; padding: 0.9rem 1rem; font-size: 0.9rem; }
  .hero-v2 .hero-microsignals { font-size: 0.78rem; gap: 0.4rem 1rem; }
  .ba-card { padding: 0.8rem; border-radius: 14px; }
  .ba-card-head { padding: 0.1rem 0.2rem 0.7rem; }
  .ba-frame { aspect-ratio: 4 / 3; }
  .ba-handle-knob { width: 32px; height: 32px; font-size: 0.85rem; }
  .ba-tag { font-size: 0.6rem; padding: 0.3rem 0.55rem; top: 0.5rem; }
  .ba-tag-before { left: 0.5rem; }
  .ba-tag-after { right: 0.5rem; }
}

/* -- STATS STRIP ---------------------------------------------------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5vw;
  background: linear-gradient(180deg, rgba(21,21,31,0.4), rgba(13,13,20,0));
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; display: inline-block;
}
.stats-strip .stat-suffix {
  font-family: var(--font-display); font-weight: 700;
  color: var(--accent); font-size: 1.4rem; margin-left: 0.1rem;
}
.stats-strip .stat-label {
  margin-top: 0.5rem;
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
@media (max-width: 800px) {
  .stats-strip { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 0.6rem; padding: 2rem 5vw; }
  .stats-strip .stat:nth-child(4), .stats-strip .stat:nth-child(5) { display: none; }
}

/* sticky mobile action bar removed — single chat + whatsapp button only */

/* -- DESKTOP STICKY QUOTE PILL -------------------------------------- */
.sticky-quote-pill {
  position: fixed; right: -100%;
  bottom: 1.6rem;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: var(--bg);
  padding: 0.85rem 1.6rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(110,255,232,0.35);
  transition: right 0.5s cubic-bezier(.22,1,.36,1), transform 0.2s, box-shadow 0.2s;
}
.sticky-quote-pill.visible { right: 8.5rem; }
.sticky-quote-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(110,255,232,0.5); }
@media (max-width: 900px) { .sticky-quote-pill { display: none !important; } }

/* -- EXIT-INTENT MODAL ---------------------------------------------- */
.exit-modal-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5,5,10,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
  animation: fadeBackdrop 0.25s ease;
}
.exit-modal-backdrop.visible { display: flex; }
@keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 1; } }
.exit-modal {
  background: linear-gradient(160deg, var(--surface), var(--surface2));
  border: 1px solid rgba(110,255,232,0.25); border-radius: 18px;
  padding: 2.5rem 2.2rem; max-width: 460px; width: 100%;
  position: relative; box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  animation: modalIn 0.35s cubic-bezier(.22,1,.36,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.exit-modal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 18px 18px 0 0;
}
.exit-modal .exit-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; cursor: pointer; padding: 0.4rem 0.6rem;
  line-height: 1; transition: color 0.2s;
}
.exit-modal .exit-close:hover { color: var(--text); }
.exit-modal .exit-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.8rem;
}
.exit-modal h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.6rem; line-height: 1.2; letter-spacing: -0.02em;
}
.exit-modal p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.4rem; }
.exit-modal form { display: flex; flex-direction: column; gap: 0.7rem; }
.exit-modal input[type="email"] {
  width: 100%; background: var(--surface3);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  padding: 0.85rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.exit-modal input[type="email"]:focus { border-color: var(--accent); }
.exit-modal button[type="submit"] {
  width: 100%; background: var(--accent); color: var(--bg);
  border: 0; border-radius: 8px; padding: 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.exit-modal button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(110,255,232,0.3); }
.exit-modal .exit-foot { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0.4rem 0 0; }
.exit-modal .exit-success { display: none; text-align: center; padding: 1rem 0; }
.exit-modal.success-mode form { display: none; }
.exit-modal.success-mode .exit-success { display: block; }
.exit-modal.success-mode .exit-success svg { width: 56px; height: 56px; margin-bottom: 0.8rem; }

/* -- HERO SCROLL HINT REMOVED, ADD FLOATING SCROLL CUE -------------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 11px; display: none;
  z-index: 1;
}
.scroll-cue::before {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--accent); animation: scrollCueDot 1.6s ease-in-out infinite;
}
@keyframes scrollCueDot {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  50%  { transform: translate(-50%, 10px); opacity: 0.3; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}
@media (min-width: 900px) { .scroll-cue { display: block; } }

/* -- DEVICE-FRAMED PORTFOLIO MOCKUPS -------------------------------- */
.df-card {
  background: linear-gradient(145deg, var(--surface), var(--surface2));
  border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative; isolation: isolate;
}
.df-card:hover { transform: translateY(-8px); border-color: rgba(110,255,232,0.3); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.df-card.is-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.df-card .df-stage {
  position: relative; aspect-ratio: 16 / 11;
  background: radial-gradient(ellipse at 50% 60%, rgba(110,255,232,0.06), transparent 60%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.df-card .df-laptop {
  width: 78%; aspect-ratio: 16 / 11;
  background: linear-gradient(145deg, #2a2a36, #14141c);
  border-radius: 10px; padding: 9px 9px 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}
.df-card .df-laptop::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -10px;
  height: 8px; background: linear-gradient(180deg, #2a2a36, #0d0d14);
  border-radius: 0 0 12px 12px;
}
.df-card .df-screen {
  background: #0a0a0f; border-radius: 4px; aspect-ratio: 16 / 10;
  overflow: hidden; position: relative;
}
.df-card .df-screen iframe { width: 250%; height: 250%; transform: scale(0.4); transform-origin: top left; border: 0; pointer-events: none; }
.df-card .df-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.df-card .df-overlay {
  position: absolute; inset: 0; background: rgba(13,13,20,0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; z-index: 3;
}
.df-card:hover .df-overlay { opacity: 1; }
.df-card .df-overlay span { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; color: var(--accent); }
.df-card .df-info { padding: 1.6rem 1.8rem 1.8rem; }
.df-card .df-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; gap: 0.5rem; }
.df-card .df-meta h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin: 0; }
.df-card .df-type { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; white-space: nowrap; }
.df-card .df-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
.df-card .df-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.df-card .df-tag {
  background: rgba(110,255,232,0.07); border: 1px solid rgba(110,255,232,0.18);
  color: var(--accent); padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.74rem; font-weight: 500;
}

.df-card.df-concept .df-screen { background: var(--surface2); }
.df-card.df-concept .df-concept-art {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8% 6%; gap: 6px;
}
.df-card .df-concept-tag {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  background: rgba(167,139,250,0.18); border: 1px solid rgba(167,139,250,0.4);
  color: #cdb5ff; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 100px;
}

/* concept artwork variants */
.cmock-bar { height: 4%; background: rgba(110,255,232,0.6); border-radius: 2px; width: 28%; }
.cmock-h { height: 12%; background: rgba(255,255,255,0.85); border-radius: 3px; width: 70%; }
.cmock-h.alt { background: var(--accent); width: 50%; }
.cmock-sub { height: 4%; background: rgba(255,255,255,0.2); border-radius: 2px; width: 80%; }
.cmock-btn { height: 8%; background: var(--accent); border-radius: 3px; width: 32%; margin-top: 4%; }
.cmock-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: auto; height: 26%; }
.cmock-grid > div { background: rgba(255,255,255,0.07); border: 1px solid rgba(110,255,232,0.15); border-radius: 4px; }
.cmock-cafe { background: linear-gradient(135deg, #1a1f1a, #0f1610); }
.cmock-cafe .cmock-h { color: #e8d5b0; background: #e8d5b0; }
.cmock-cafe .cmock-h.alt { background: #c89968; }
.cmock-cafe .cmock-btn { background: #c89968; }
.cmock-cafe .cmock-bar { background: #c89968; }
.cmock-pt { background: linear-gradient(135deg, #1f1a1f, #150f15); }
.cmock-pt .cmock-h { background: #ff6b9d; }
.cmock-pt .cmock-h.alt { background: #fff; }
.cmock-pt .cmock-btn { background: #ff6b9d; }
.cmock-pt .cmock-bar { background: #ff6b9d; }
.cmock-dental { background: linear-gradient(135deg, #1a1f24, #0f1419); }
.cmock-dental .cmock-h { background: #fff; }
.cmock-dental .cmock-h.alt { background: #6bb3ff; }
.cmock-dental .cmock-btn { background: #6bb3ff; }
.cmock-dental .cmock-bar { background: #6bb3ff; }

/* -- ANIMATED PROCESS TIMELINE -------------------------------------- */
.timeline-process {
  position: relative; max-width: 900px; margin: 3rem auto 0;
  padding: 0 1rem;
}
.timeline-process::before {
  content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(110,255,232,0.4) 12%, rgba(167,139,250,0.4) 88%, transparent);
}
.timeline-step {
  position: relative; padding-left: 4rem; padding-bottom: 2rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-step.visible { opacity: 1; transform: translateY(0); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .ts-dot {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(110,255,232,0.3);
}
.timeline-step h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.timeline-step p { color: var(--muted); font-size: 0.94rem; line-height: 1.7; max-width: 560px; }

/* -- INTERACTIVE PACKAGE SELECTOR ----------------------------------- */
.pkg-builder {
  background: linear-gradient(145deg, var(--surface), var(--surface2));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem; margin-top: 2.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
}
.pkg-builder .pkb-tabs {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.pkg-builder .pkb-tab {
  text-align: left; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.95rem;
}
.pkg-builder .pkb-tab:hover { border-color: rgba(110,255,232,0.25); background: rgba(110,255,232,0.03); }
.pkg-builder .pkb-tab.active {
  border-color: var(--accent); background: linear-gradient(135deg, rgba(110,255,232,0.08), rgba(167,139,250,0.04));
  transform: translateX(4px);
}
.pkg-builder .pkb-tab .tab-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.pkg-builder .pkb-tab .tab-price { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.pkg-builder .pkb-panel { display: none; flex-direction: column; }
.pkg-builder .pkb-panel.active { display: flex; }
.pkg-builder .pkb-panel h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.4rem; }
.pkg-builder .pkb-panel .pkb-price { color: var(--accent); font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.pkg-builder .pkb-panel p { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.7; font-size: 0.95rem; }
.pkg-builder .pkb-panel ul { list-style: none; margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pkg-builder .pkb-panel li { font-size: 0.92rem; color: var(--text); display: flex; align-items: flex-start; gap: 0.5rem; }
.pkg-builder .pkb-panel li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pkg-builder .pkb-panel li.dim { color: var(--muted); opacity: 0.55; }
.pkg-builder .pkb-panel li.dim::before { content: "✗"; color: var(--muted); }
.pkg-builder .pkb-panel a.btn-primary-lg { align-self: flex-start; }
@media (max-width: 800px) {
  .pkg-builder { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.4rem; }
}

/* -- MOBILE TABBED PRICING / MAINTENANCE CARDS ----------------------
   Built dynamically by initMobileTabs() in shared.js. Strip is hidden
   on desktop; on mobile it replaces the horizontal-scroll carousel
   with a tap-to-switch tab UI matching the services page selector. */
.mtab-strip { display: none; }
@media (max-width: 700px) {
  .mtab-strip {
    display: flex;
    background: linear-gradient(145deg, var(--surface), var(--surface2));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 1rem;
    gap: 4px;
  }
  .mtab {
    flex: 1 1 0; min-width: 0;
    background: transparent; border: none; cursor: pointer;
    color: var(--muted);
    padding: 0.7rem 0.5rem; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    font-family: var(--font-body);
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  }
  .mtab:active { transform: scale(0.97); }
  .mtab.active {
    background: linear-gradient(135deg, rgba(110,255,232,0.14), rgba(167,139,250,0.06));
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(110,255,232,0.3);
  }
  .mtab-name {
    font-family: var(--font-display);
    font-weight: 700; font-size: 0.84rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .mtab.active .mtab-name { color: var(--accent); }
  .mtab-price {
    font-size: 0.78rem; color: var(--muted); font-weight: 500;
    font-family: var(--font-body);
  }
  .mtab.active .mtab-price { color: var(--text); }
  .mtab.featured::after {
    content: "★"; position: absolute;
    top: 4px; right: 8px; color: var(--accent);
    font-size: 0.7rem; opacity: 0.7;
  }
  .mtab.featured { position: relative; }

  /* override the carousel layout from style.css / shared.css */
  .pricing-grid.mtab-mode,
  .maintenance-grid.mtab-mode,
  .auto-grid.mtab-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
    max-width: none !important;
  }
  .pricing-grid.mtab-mode .mtab-card,
  .maintenance-grid.mtab-mode .mtab-card,
  .auto-grid.mtab-mode .mtab-card {
    display: none !important;
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
  }
  .pricing-grid.mtab-mode .mtab-card.mtab-active,
  .maintenance-grid.mtab-mode .mtab-card.mtab-active,
  .auto-grid.mtab-mode .mtab-card.mtab-active {
    display: flex !important;
  }
  /* non-tier info card (e.g. "Want the full picture?") sits below as a
     supplementary block, full width */
  .pricing-grid.mtab-mode > .pricing-card:not(.mtab-card),
  .auto-grid.mtab-mode > .auto-card:not(.mtab-card) {
    display: flex !important;
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
  }
  .swipe-hint.mtab-hidden { display: none !important; }
}
.next-steps-panel {
  background: linear-gradient(145deg, var(--surface), var(--surface2));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.8rem 1.6rem;
  position: sticky; top: 6rem;
}
.next-steps-panel .nsp-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
.next-steps-panel h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1.2rem; }
.next-steps-panel ol { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1rem; }
.next-steps-panel li { counter-increment: step; padding-left: 3rem; position: relative; }
.next-steps-panel li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--accent); width: 2.4rem;
}
.next-steps-panel li strong { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; font-size: 0.98rem; }
.next-steps-panel li span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

/* -- BOOK PAGE PREVIEW CARD ----------------------------------------- */
.book-preview {
  background: linear-gradient(145deg, var(--surface), var(--surface2));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.book-preview .bp-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.6rem;
}
.book-preview h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.8rem; }
.book-preview ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.book-preview li { color: var(--muted); font-size: 0.9rem; padding-left: 1.5rem; position: relative; line-height: 1.5; }
.book-preview li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 0.85rem;
}

/* -- SUBTLE NAV LINK UNDERLINE -------------------------------------- */
nav ul a { position: relative; padding-bottom: 4px; }
nav ul a:not(.nav-cta):not(.nav-phone)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s ease;
}
nav ul a:not(.nav-cta):not(.nav-phone):hover::after,
nav ul a.active:not(.nav-cta):not(.nav-phone)::after,
nav ul a.nav-active:not(.nav-cta):not(.nav-phone)::after { width: 100%; }

/* -- PARALLAX HERO GLOWS (subtle scroll-driven shift) --------------- */
.parallax-glow { will-change: transform; }

/* -- BUTTON HOVER MICRO-INTERACTIONS -------------------------------- */
.btn-primary, .btn-book, .btn-call, .pricing-btn, .form-submit {
  position: relative; overflow: hidden;
}

/* -- TIMELINE / FADE SCROLL ANIMATION (override dead style) --------- */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }

/* -- HERO TYPING DOTS FOR CHATBOT ----------------------------------- */
.chat-msg.typing { display: inline-flex; align-items: center; gap: 5px; }
.chat-msg.typing .typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: typingDot 1.4s ease-in-out infinite both;
}
.chat-msg.typing .typing-dot:nth-child(2) { animation-delay: 0.16s; }
.chat-msg.typing .typing-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   MOBILE POLISH — final consolidated overrides for clean phone UX
   =================================================================== */
@media (max-width: 700px) {
  /* portfolio cards on the homepage are content-rich (laptop mockup +
     description + tags) — stack them vertically full-width instead of
     forcing them into the pricing/maintenance horizontal carousel. */
  .portfolio-grid:has(.df-card) {
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .portfolio-grid .df-card {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
  .df-card .df-stage { aspect-ratio: 16 / 11; }
  .df-card .df-info { padding: 1.3rem 1.4rem 1.6rem; }
  .df-card .df-meta { flex-wrap: wrap; gap: 0.3rem 0.6rem; align-items: flex-start; }
  .df-card .df-meta h3 { font-size: 1.1rem; line-height: 1.2; }
  .df-card .df-type { font-size: 0.65rem; }
  .df-card .df-desc { font-size: 0.88rem; line-height: 1.65; }
  .df-card .df-tag { font-size: 0.7rem; padding: 0.25rem 0.65rem; }

  /* "Your site could be next" placeholder — tighter on mobile */
  #portfolio > .fade-up:last-child {
    margin-top: 1.5rem !important;
    padding: 2rem 1.4rem !important;
  }

  /* portfolio-header-row — title + view-all link should stack neatly */
  .portfolio-header-row {
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .btn-view-portfolio { font-size: 0.8rem; padding: 0.6rem 1.1rem; }

  /* services / pricing / maintenance section headers */
  .services-header { margin-bottom: 1.5rem; gap: 0.8rem; }
  .services-header h2 { margin-bottom: 0.5rem; }

  /* hero CTA buttons sit inline rather than stretched on small phones */
  .hero-v2 .hero-actions-v2 { gap: 0.7rem; }

  /* about section — pull photo/card tighter, less wasted space */
  #about { gap: 2.2rem !important; padding-top: 3rem; padding-bottom: 3rem; }
  .about-card { padding: 1.6rem 1.4rem; }
  .about-photo { height: 220px; }

  /* contact teaser — collapse the empty card into a single column */
  .contact-teaser-inner { gap: 2rem; }
  .contact-teaser-card-inner { padding: 1.8rem 1.5rem; }
  .contact-detail { padding: 0.75rem 0.9rem; font-size: 0.88rem; }

  /* section labels + headings rhythm */
  .section-label { margin-bottom: 0.6rem; font-size: 0.68rem; }
  .section-desc { font-size: 0.92rem; line-height: 1.7; }

  /* timeline process steps — tighter card padding */
  .timeline-process { gap: 0.9rem; }

  /* trust card on hero — slightly tighter */
  .hero-v2 .hero-trust { gap: 0.7rem; padding: 0.8rem 0.9rem; max-width: none; }
  .hero-v2 .hero-trust .trust-avatar { width: 36px; height: 36px; font-size: 0.78rem; }
  .hero-v2 .hero-trust .trust-quote { font-size: 0.82rem; line-height: 1.45; margin: 0.2rem 0; }
  .hero-v2 .hero-trust .trust-author { font-size: 0.72rem; }

  /* marquee — tighter band */
  .marquee-section { height: 2.2rem; }
  .marquee-item { font-size: 0.72rem; gap: 1rem; }
  .marquee-track { gap: 2.5rem; }

  /* stats strip — less padding, tighter labels */
  .stats-strip { padding: 1.6rem 5vw; gap: 0.9rem 0.4rem; }
  .stats-strip .stat-label { font-size: 0.62rem; letter-spacing: 0.08em; margin-top: 0.3rem; }
  .stats-strip .stat-suffix { font-size: 1.05rem; }

  /* swipe-hint dim a touch */
  .swipe-hint { font-size: 0.68rem; margin-bottom: 0.7rem; opacity: 0.8; }

  /* footer rhythm */
  .footer-top { padding: 2.2rem 5vw 1.8rem; gap: 1.6rem; }
  .footer-tagline { font-size: 0.85rem; }
  .footer-col-title { font-size: 0.68rem; }
  .footer-col a { font-size: 0.85rem; }
  .footer-bottom span { font-size: 0.72rem; }

  /* whatsapp + chat float buttons — tighter to corner now that the
     bottom action bar is gone, and stacked clean */
  .whatsapp-btn { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .whatsapp-btn svg { width: 24px; height: 24px; }
  .chat-widget { bottom: 4.5rem; right: 1rem; }
  .chat-btn { width: 50px; height: 50px; font-size: 1.25rem; }

  /* nav logo and bar — tighter */
  nav#mainNav { padding: 0.3rem 4vw; }
  .logo-img { height: 44px; }

  /* page-hero on subpages — less top padding now that nav is shorter */
  .page-hero { padding: 5.5rem 5vw 2.8rem; }
  .page-hero-inner h1 { font-size: clamp(2rem, 8vw, 3rem); }
}

/* very small phones */
@media (max-width: 380px) {
  .hero-v2 h1.hero-h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .marquee-item { font-size: 0.68rem; }
  .pricing-card, .maintenance-card { flex: 0 0 86vw !important; }
}
