/*
 * X18Reviews · /home3 · hero stage in the Finora layout (licensed theme):
 * the golden-hills panel behind the hero, the iPhone cut off by the panel's
 * bottom edge showing a lock screen with live notifications, and one
 * floating card on each side. Built by fin.js; scoped under .h3-fn.
 *
 * Phone image geometry (phone.webp, from a 1628 px master):
 *   screen left 68 / width 1499 / top 44, top corner radius 140.
 * The lock screen is designed at 373 px (the screen width of the 405 px
 * desktop phone) and scaled to the phone actually shown (--fn-s, set by JS).
 */

.framer-36KoE .framer-1p4ibvv { position: relative; isolation: isolate; }

.h3-fn-bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 24px;
  right: 24px;
  height: var(--fn-bg-h, 100%);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  pointer-events: none;
}
.h3-fn-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.h3-fn {
  --fn-pw: 405px;
  --fn-s: 1;
  position: relative;
  width: 100%;
  height: calc(var(--fn-pw) * 1.1728);
  margin-top: 4px;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- phone */
.h3-fn-phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--fn-pw);
  height: 100%;
  margin-left: calc(var(--fn-pw) / -2);
  overflow: hidden;
  animation: h3-fn-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes h3-fn-rise {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
.h3-fn-phone > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}
.h3-fn-screen {
  position: absolute;
  left: calc(var(--fn-pw) * 0.04177);
  width: calc(var(--fn-pw) * 0.92076);
  top: calc(var(--fn-pw) * 0.02703);
  bottom: 0;
  border-radius: calc(var(--fn-pw) * 0.086) calc(var(--fn-pw) * 0.086) 0 0;
  overflow: hidden;
  background: #1d1f16;
}

/* lock screen, at 373 px design width */
.h3-fn-ls {
  position: absolute;
  top: 0;
  left: 0;
  width: 373px;
  height: calc(100% / var(--fn-s));
  transform: scale(var(--fn-s));
  transform-origin: 0 0;
  color: #fff;
}
.h3-fn-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 8% 100%;
  transform: scale(2.1);
  transform-origin: 0 100%;
  filter: brightness(0.72) saturate(1.25) contrast(1.06);
}
.h3-fn-ls::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 8, 0.5) 0%, rgba(16, 18, 8, 0.22) 46%, rgba(16, 18, 8, 0.12) 100%);
}
.h3-fn-island {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 108px;
  height: 33px;
  margin-left: -54px;
  border-radius: 20px;
  background: #000;
}
.h3-fn-status {
  position: absolute;
  top: 15px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 14px;
}
.h3-fn-status svg { display: block; height: 12px; width: auto; fill: #fff; }
.h3-fn-date {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.h3-fn-time {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "SF Pro Display", -apple-system, "Inter Display", "Inter", sans-serif;
  font-size: 88px;
  line-height: 96px;
  font-weight: 700;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

/* notifications: newest at the top, older ones slide down and out under
   the panel's edge, like a busy lock screen */
.h3-fn-feed {
  --n-h: 62px;
  --n-gap: 8px;
  position: absolute;
  top: 190px;
  left: 12px;
  right: 12px;
  bottom: 0;
}
.h3-fn-n {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--n-h);
  padding: 0 14px 0 12px;
  border-radius: 20px;
  background: rgba(248, 248, 246, 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 22px -12px rgba(0, 0, 0, 0.45);
  color: #111;
  opacity: 0;
  transform: translateY(-14px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}
.h3-fn-n.is-hot {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 0 0 2px rgba(34, 197, 94, 0.6), 0 10px 26px -8px rgba(34, 197, 94, 0.6);
}
.h3-fn-n-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
}
.h3-fn-n-ic svg { display: block; width: 100%; height: 100%; }
.h3-fn-n-tx { flex: 1 1 0; min-width: 0; }
.h3-fn-n-top { display: flex; align-items: baseline; gap: 8px; }
.h3-fn-n-t {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h3-fn-n-when { flex: none; font-size: 12px; line-height: 18px; color: rgba(0, 0, 0, 0.45); }
.h3-fn-n-b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13.5px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.72);
}

/* ------------------------------------------------------ side cards (desktop) */
.h3-fn-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 24px -14px rgba(76, 84, 160, 0.28), 0 3px 0 -1px rgba(219, 223, 250, 0.55);
  color: #1b2340;
  animation: h3-fn-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
}
@keyframes h3-fn-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.h3-fn-l { left: calc(50% - 548px); top: 96px; width: 240px; padding: 14px 14px 12px; animation-delay: 0.55s; }
.h3-fn-r { left: calc(50% + 263px); top: 165px; width: 302px; height: 155px; padding: 0 18px; animation-delay: 0.7s; }

.h3-fn-ph { display: flex; align-items: center; gap: 10px; }
.h3-fn-ph img { flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.h3-fn-ph b { display: block; font-size: 14px; line-height: 17px; font-weight: 600; color: #181f1f; letter-spacing: -0.01em; white-space: nowrap; }
.h3-fn-ph span { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; line-height: 14px; font-weight: 500; color: #181f1f; }
.h3-fn-ph i { font-style: normal; font-size: 10px; letter-spacing: 1px; color: #f5b301; }

/* the score ring: amber while it climbs, green with a soft halo at 98 */
.h3-fn-ring { position: relative; width: 112px; height: 112px; margin: 10px auto 0; }
.h3-fn-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.h3-fn-ring circle { fill: none; stroke-width: 9; }
.h3-fn-ring .trk { stroke: #eef0ef; }
.h3-fn-ring .val {
  stroke: #f5a524;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 109.83;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.5s ease;
}
.h3-fn-ring::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.25), inset 0 0 18px rgba(34, 197, 94, 0.12);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.h3-fn-ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.h3-fn-ring-n b { font-family: "Inter Display", "Inter", sans-serif; font-size: 34px; line-height: 36px; font-weight: 700; letter-spacing: -0.03em; color: #181f1f; font-variant-numeric: tabular-nums; }
.h3-fn-ring-n span { margin-top: 1px; font-size: 10.5px; line-height: 13px; font-weight: 500; color: #6b7280; }

.h3-fn-pill {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.h3-fn-pill span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #b45309;
  background: #fef3c7;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.h3-fn-chk { list-style: none; margin: 10px 0 0; padding: 0; }
.h3-fn-chk li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 500;
  color: #a3a8ae;
  transition: color 0.3s ease;
}
.h3-fn-chk li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #dfe2e5;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.h3-fn-r-top { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.h3-fn-r-t { font-size: 16px; line-height: 20px; font-weight: 400; color: #6b7489; }
.h3-fn-r-box {
  height: 74px;
  padding: 0 10px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.h3-fn-r-l { font-size: 16px; line-height: 20px; color: #9b9b9b; }
.h3-fn-r-v { margin-top: 4px; font-size: 27px; line-height: 30px; font-weight: 700; color: #000; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.h3-fn-r-v small { font-size: inherit; color: #a8a8a8; }
/* calls and directions side by side, each with its weekly change (the same
   sample figures as the "Stand out nearby" cards) */
.h3-fn-r-split { flex-direction: row; align-items: center; justify-content: flex-start; padding: 0; }
.h3-fn-r-split > div { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.h3-fn-r-split > div + div { border-left: 1px solid #e7e7e7; }
.h3-fn-r-split .h3-fn-r-l { display: block; font-size: 13px; line-height: 16px; }
.h3-fn-r-split .h3-fn-r-v { display: flex; align-items: baseline; gap: 6px; font-size: 24px; line-height: 28px; }
.h3-fn-r-split .h3-fn-r-v em {
  font-style: normal;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* the picture is an example, and says so (like the ranking animation's
   caption): just under the panel, outside the stage's box so the panel
   still ends at the phone's edge */
.h3-fn-cap {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 10px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #8a8f98;
}

/* --------------------------------------------------------------- tablet */
@media (max-width: 1199.98px) {
  .h3-fn { --fn-pw: 375px; }
  .h3-fn-card { display: none; }
}
/* ---------------------------------------------------------------- phone */
@media (max-width: 809.98px) {
  .h3-fn-bg { left: 12px; right: 12px; border-radius: 0 0 20px 20px; }
  .h3-fn { --fn-pw: min(300px, 78vw); margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .h3-fn-phone, .h3-fn-card { animation: none; }
  .h3-fn-n, .h3-fn-ring .val, .h3-fn-pill span { transition: none; }
}
