/* OFFERS FIND YOU: pin-shaped photo window + lock screen alerts */
.near { background: var(--paper); overflow: clip; padding-block: clamp(80px, 8vw, 120px); }
.near__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 2.4vw, 36px); align-items: center; }
.near__copy { display: grid; gap: 22px; }
.near__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.near__btn {
  --c: var(--orange);
  position: relative; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left;
  padding: 16px 20px 18px; border: 0; background: var(--sky); border-radius: var(--r); cursor: pointer; overflow: hidden;
  transition: background-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.near__item--lime .near__btn { --c: var(--lime-deep); }
.near__item--blue .near__btn { --c: var(--blue); }
.near__pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: inset 0 0 0 9px var(--c), inset 0 0 0 20px #fff; transition: transform .5s var(--ease); }
.near__txt strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.near__txt span { color: #3a4266; }
.near__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(18, 26, 58, .06); }
.near__bar i { display: block; height: 100%; width: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.near__item.is-on .near__btn { background: var(--paper); box-shadow: 0 22px 44px -26px rgba(18, 26, 58, .45), inset 0 0 0 2px var(--c); transform: translateX(10px); }
.near__item.is-on .near__pin { transform: rotate(-45deg) scale(1.12); }
.near__btn:hover { background: #e6edf6; }
.near__item.is-on .near__btn:hover { background: var(--paper); }

.near__stage { position: relative; height: clamp(500px, 62vh, 580px); }
.near__drop { position: absolute; right: 4%; top: 2%; width: min(440px, 76%); aspect-ratio: 1; }
.near__drop-in {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); overflow: hidden; background: var(--ink);
  box-shadow: 0 40px 70px -40px rgba(18, 26, 58, .6);
}
.near__photo { position: absolute; left: 50%; top: 50%; width: 142%; height: 142%; max-width: none; object-fit: cover; transform: translate(-50%, -50%) rotate(45deg); opacity: 0; }
.near__photo.is-on { opacity: 1; }
.near__rings { position: absolute; right: calc(4% + min(440px, 76%) * .5 - 90px); top: calc(2% + min(440px, 76%) * 1.2); width: 180px; height: 60px; }
.near__rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: nearRing 3s var(--ease) infinite; }
.near__rings i:nth-child(2) { animation-delay: 1s; } .near__rings i:nth-child(3) { animation-delay: 2s; }
@keyframes nearRing { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.near__phone {
  position: absolute; left: 0; top: 0; width: clamp(236px, 18vw, 262px); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 40px; background: #0e1430;
  box-shadow: 0 50px 80px -40px rgba(18, 26, 58, .7), inset 0 0 0 2px #2a3566;
}
.near__screen {
  position: relative; height: 100%; border-radius: 31px; overflow: hidden; padding: 46px 12px 14px;
  background: radial-gradient(120% 70% at 30% 0%, #3f8fd8 0%, #1d3d8f 45%, #121a3a 100%);
}
.near__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 20px; background: #0e1430; }
.near__time { text-align: center; color: #fff; margin-bottom: 18px; }
.near__time span { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; }
.near__time small { font-size: .9rem; opacity: .85; }
.near__stack { position: relative; display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 196px); overflow: clip; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.near__screen { display: flex; flex-direction: column; }
.note {
  display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; padding: 11px 11px 12px; border-radius: 0 16px 0 0;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .5);
}
.note.is-old { opacity: .62; }
.note.is-old .note__body p { display: none; }
.note__icon { width: 30px; height: 30px; border-radius: 0 8px 0 0; background: #fff; }
.note__app { display: flex; justify-content: space-between; font-size: .875rem; color: var(--grey); font-weight: 600; }
.note__app em { font-style: normal; }
.note__body strong { display: block; font-size: .94rem; line-height: 1.25; margin: 2px 0 2px; }
.note__body p { font-size: .875rem; line-height: 1.32; color: #303756; }

.near__dock { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; justify-content: space-between; }
.near__key { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.near__key svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.near__screen::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 90px; height: 4px; margin-left: -45px; border-radius: 4px; background: rgba(255, 255, 255, .7); }

@media (max-width: 960px) {
  .near__grid { grid-template-columns: minmax(0, 1fr); }
  .near__stage { height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .near__item.is-on .near__btn { transform: none; }
}
@media (max-width: 520px) {
  .near__stage { height: 540px; }
  .near__drop { width: 78%; right: 0; }
  .near__phone { width: 252px; padding: 8px; border-radius: 32px; }
  .note__app em { display: none; }
  .near__drop { width: 66%; }
  .near__screen { border-radius: 25px; padding-top: 40px; }
  .near__time span { font-size: 2.2rem; }
  .near__rings { right: calc(39% - 90px); top: calc(78vw * 1.05); }
}
