/* =============================================================================
   Match House — Smart Link prototype
   Mobile experience the CLIENT sees when tapping a corretor's bio link.
   Screen canvas: 390 × 844 inside a custom device frame.
   ============================================================================= */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }

/* ---------------------------------------------------------------------------
   STAGE — desktop backdrop, phone centered
   --------------------------------------------------------------------------- */
.sl-stage {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--mh-navy);
  background:
    radial-gradient(50% 60% at 15% 0%, rgba(0,15,144,0.10), transparent 60%),
    radial-gradient(55% 60% at 100% 100%, rgba(0,239,255,0.14), transparent 55%),
    #e9eaef;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 48px 24px; flex-wrap: wrap;
}

/* The narrative panel beside the phone (desktop only) */
.sl-pitch {
  max-width: 360px; align-self: center;
}
.sl-pitch__logo { height: 26px; margin-bottom: 28px; }
.sl-pitch__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mh-blue); margin-bottom: 14px;
}
.sl-pitch h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 42px; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 16px;
}
.sl-pitch h1 .accent { color: transparent; background: var(--mh-gradient-symbol); -webkit-background-clip: text; background-clip: text; }
.sl-pitch p { font-size: 15px; line-height: 1.6; color: var(--mh-gray-600); margin: 0 0 24px; }
.sl-pitch__steps { display: flex; flex-direction: column; gap: 14px; }
.sl-pitch__step { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.sl-pitch__num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mh-navy); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; font-family: var(--font-display);
}
.sl-pitch__step b { font-weight: 600; }
.sl-pitch__step span { color: var(--mh-gray-500); }
@media (max-width: 900px) { .sl-pitch { display: none; } }

/* ---------------------------------------------------------------------------
   DEVICE FRAME
   --------------------------------------------------------------------------- */
.sl-device {
  position: relative;
  width: 414px; height: 868px;
  background: #05060f;
  border-radius: 56px;
  padding: 12px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.4) inset,
    0 50px 90px -30px rgba(0,7,62,0.55),
    0 0 0 2px rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.sl-screen {
  position: relative; width: 390px; height: 844px;
  background: var(--bg-1, #f1f1f1);
  border-radius: 46px; overflow: hidden;
}
/* notch */
.sl-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 124px; height: 32px; background: #05060f;
  border-radius: 0 0 18px 18px; z-index: 60;
}
/* status bar */
.sl-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 55;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 30px 0; font-size: 14px; font-weight: 600;
  color: var(--fg-1, #00073e); pointer-events: none;
}
.sl-status__icons { display: flex; gap: 7px; font-size: 15px; }
.sl-screen.is-dark .sl-status { color: #fff; }

/* the scrollable viewport for each screen */
.sl-view {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.sl-view::-webkit-scrollbar { display: none; }

/* screen transition — animate transform only; base state stays visible so a
   paused animation clock (backgrounded tab, print, reduced-motion) never strands
   content at opacity:0 */
.sl-page { animation: slPageIn 320ms var(--ease-out); }
@keyframes slPageIn { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-page { animation: none; } }

/* ---------------------------------------------------------------------------
   HOME — the living bio link
   --------------------------------------------------------------------------- */
.sl-home { padding-bottom: 120px; }

/* Hero — gradient header that holds profile + live AI greeting */
.sl-hero {
  position: relative;
  background: var(--mh-gradient-brand);
  padding: 60px 22px 26px;
  border-radius: 0 0 34px 34px;
  color: #fff;
  overflow: hidden;
}
.sl-hero__glow {
  position: absolute; inset: -30% -20% auto auto; width: 80%; height: 80%;
  background: radial-gradient(circle at 70% 30%, rgba(0,239,255,0.55), transparent 60%);
  pointer-events: none;
}
.sl-hero__brandrow {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1; margin-bottom: 22px;
}
.sl-hero__brand { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.92; }
.sl-hero__brand img { height: 18px; filter: brightness(0) invert(1); }
.sl-hero__share {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.16); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 16px; backdrop-filter: blur(8px);
}
.sl-profile { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.sl-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 24px;
  font-family: var(--font-display);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); position: relative; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,0.25);
}
.sl-avatar__live {
  position: absolute; right: 0; bottom: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--mh-cyan); border: 3px solid #0a2a9e;
}
.sl-profile__name { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.sl-profile__name i { font-size: 16px; color: var(--mh-cyan); }
.sl-profile__title { font-size: 12.5px; opacity: 0.86; margin-top: 2px; }
.sl-profile__stats { display: flex; gap: 14px; margin-top: 10px; }
.sl-profile__stat { font-size: 11px; opacity: 0.85; }
.sl-profile__stat b { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: block; }

/* Live AI greeting card — the signature moment */
.sl-greet {
  margin: -18px 16px 0; position: relative; z-index: 5;
  background: var(--bg-2, #fff); border-radius: 22px;
  padding: 16px 16px 14px; box-shadow: var(--shadow-lg);
}
.sl-greet__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sl-greet__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--mh-blue); background: rgba(0,239,255,0.16);
  padding: 4px 9px; border-radius: 999px;
}
.sl-greet__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mh-cyan); box-shadow: 0 0 0 3px rgba(0,239,255,0.3); animation: slPulse 1.6s var(--ease-in-out) infinite; }
@keyframes slPulse { 0%,100%{box-shadow:0 0 0 3px rgba(0,239,255,0.3);} 50%{box-shadow:0 0 0 6px rgba(0,239,255,0.08);} }
.sl-greet__lines { font-size: 15px; line-height: 1.5; color: var(--fg-1, #00073e); min-height: 66px; }
.sl-greet__line { margin: 0 0 3px; }
.sl-greet__line.is-muted { color: var(--fg-2, #2c3043); }
.sl-cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--mh-blue); vertical-align: -2px; margin-left: 1px; animation: slBlink 0.9s steps(2) infinite; }
@keyframes slBlink { 50% { opacity: 0; } }

/* quick intents */
.sl-intents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sl-intent {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--bg-3, #f7f7f8); border: 1px solid var(--border-subtle, #e4e5ea);
  border-radius: 14px; padding: 11px 12px; text-align: left;
  font: 600 12.5px var(--font-sans); color: var(--fg-1, #00073e);
  transition: all 180ms var(--ease-out);
}
.sl-intent i { color: var(--mh-blue); font-size: 17px; }
.sl-intent:active { transform: scale(0.97); background: var(--mh-cyan); }

/* section */
.sl-section { padding: 26px 16px 0; }
.sl-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sl-section__head h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2, #2c3043); margin: 0; }
.sl-section__link { background: none; border: none; color: var(--link, #000f90); font: 600 12px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }

/* property carousel */
.sl-rail { display: flex; gap: 13px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.sl-rail::-webkit-scrollbar { display: none; }
.sl-card {
  flex: 0 0 240px; height: 320px; border-radius: 24px; overflow: hidden;
  position: relative; cursor: pointer; border: none; padding: 0;
  box-shadow: var(--shadow-md); transition: transform 200ms var(--ease-out);
  text-align: left;
}
.sl-card:active { transform: scale(0.98); }
.sl-card__img { position: absolute; inset: 0; }
.sl-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,7,62,0.05) 30%, rgba(0,7,62,0.82) 100%); }
.sl-card__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.sl-card__match {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,239,255,0.92); color: var(--mh-navy);
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  font-family: var(--font-display);
}
.sl-card__match i { font-size: 12px; }
.sl-card__save { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; font-size: 15px; }
.sl-card__body { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; color: #fff; }
.sl-card__bairro { font-size: 11px; opacity: 0.85; font-weight: 500; }
.sl-card__title { font-size: 16px; font-weight: 600; line-height: 1.2; margin: 3px 0 8px; }
.sl-card__price { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--mh-cyan); }
.sl-card__meta { display: flex; gap: 10px; font-size: 10.5px; opacity: 0.9; margin-top: 6px; }
.sl-card__meta i { vertical-align: -1px; margin-right: 2px; }

/* link rows */
.sl-links { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.sl-linkrow {
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  background: var(--bg-2, #fff); border: 1px solid var(--border-subtle, #e4e5ea);
  border-radius: 16px; padding: 12px 15px; text-align: left;
  font-family: var(--font-sans); transition: transform 150ms var(--ease-out);
}
.sl-linkrow:active { transform: scale(0.99); }
.sl-linkrow__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mh-gradient-symbol); display: grid; place-items: center; color: #fff; font-size: 19px; flex-shrink: 0; }
.sl-linkrow__body { flex: 1; }
.sl-linkrow__label { font-size: 14px; font-weight: 600; color: var(--fg-1, #00073e); }
.sl-linkrow__sub { font-size: 11px; color: var(--fg-3, #6c7081); margin-top: 1px; }
.sl-linkrow__arrow { color: var(--fg-muted, #969aaa); font-size: 15px; }

.sl-foot { text-align: center; padding: 28px 16px 8px; opacity: 0.6; }
.sl-foot img { height: 18px; }
.sl-foot__tag { font-size: 10.5px; color: var(--fg-3, #6c7081); font-style: italic; margin-top: 6px; }

/* ---------------------------------------------------------------------------
   FLOATING AI DOCK
   --------------------------------------------------------------------------- */
.sl-dock {
  position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 40;
}
.sl-dock__btn {
  width: 100%; border: none; cursor: pointer;
  background: var(--mh-navy); color: #fff;
  border-radius: 999px; padding: 15px 22px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 34px -8px rgba(0,7,62,0.6), 0 0 0 1px rgba(255,255,255,0.06) inset;
  font-family: var(--font-sans);
  transition: transform 180ms var(--ease-out);
}
.sl-dock__btn:active { transform: scale(0.985); }
.sl-dock__orb {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--mh-gradient-symbol);
  box-shadow: 0 0 0 4px rgba(0,239,255,0.18);
  animation: slOrb 2.6s var(--ease-in-out) infinite;
}
@keyframes slOrb { 0%,100%{box-shadow:0 0 0 4px rgba(0,239,255,0.18);} 50%{box-shadow:0 0 0 8px rgba(0,239,255,0.06);} }
.sl-dock__txt { flex: 1; text-align: left; }
.sl-dock__txt b { display: block; font-size: 14px; font-weight: 600; }
.sl-dock__txt span { font-size: 11px; opacity: 0.7; }
.sl-dock__btn > i { font-size: 18px; color: var(--mh-cyan); }
