/* Hero — template "Hero Section": sky, centered heading, phone + floating cards, rating, buttons. */
.hero { position: relative; background: #fff; padding: 180px 0 0; height: 1162px; overflow: clip; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .4) 10%, rgba(0, 0, 0, 0) 80%); mask-image: linear-gradient(rgba(0, 0, 0, .4) 10%, rgba(0, 0, 0, 0) 80%); }
.hero-c { position: relative; width: 1140px; max-width: calc(100% - 40px); margin: 0 auto; }
.hero-head { width: 800px; max-width: 100%; margin: 0 auto; text-align: center; }
.hero-h1 { max-width: 760px; margin: 0 auto; }
.hero-p { max-width: 600px; margin: 24px auto 0; }

/* rotating payment method in the title */
.rot { display: inline-block; position: relative; vertical-align: bottom; height: 1.1em; overflow: hidden; transition: width .55s cubic-bezier(.65, 0, .35, 1); white-space: nowrap; text-align: left; }
.rot-in { display: inline-block; will-change: transform; }
.rot-in.out { animation: rot-out .45s cubic-bezier(.65, 0, .35, 1) forwards; }
.rot-in.in { animation: rot-in .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes rot-out { to { transform: translateY(-105%); opacity: 0; } }
@keyframes rot-in { from { transform: translateY(105%); opacity: 0; } }

.hero-vis { position: relative; height: 480px; margin-top: 56px; }
.hero-phone { position: absolute; left: 50%; top: 0; width: 424px; height: 480px; margin-left: -212px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent); mask-image: linear-gradient(#000 calc(100% - 90px), transparent); }
.phone { position: absolute; left: 0; top: 0; width: 400px; height: 863px; z-index: 2; }
.phone-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone-screen { position: absolute; left: 0; top: 0; width: 360px; height: 780px; transform-origin: 0 0; transform: matrix3d(0.843589,-0.00578238,0,-9.08448e-05,-0.0534539,1.02072,0,-1.18035e-06,0,0,1,0,50.9764,27.1737,0,1); background: #fff; border-radius: 52px 52px 56px 56px; overflow: hidden; }

/* floating cards */
.hv { position: absolute; z-index: 3; }
.hv-sales { left: 112px; top: 255px; width: 225px; padding: 20px; background: #fff; border-radius: 16px; box-shadow: var(--card-sh); }
.hv-l { font-size: 16px; line-height: 1.4; color: var(--muted); }
.hv-v { margin-top: 20px; font-size: 28px; line-height: 1.4; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.hv-r { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.chip-g { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--green-bg); color: var(--green); font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: -.03em; }
.chip-g.neg { background: rgba(229, 72, 77, .1); color: var(--red); }
.hv-pill { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 40px; background: #000; color: #fff; font-size: 14px; line-height: 1.4; white-space: nowrap; box-shadow: 4px 4px 12px rgba(0, 0, 0, .25); }
.hv-pill-l { left: 160px; top: 146px; }
.hv-pill-r { left: 817px; top: 328px; }
.hv-price { left: 832px; top: 104px; width: 210px; padding: 20px; background: #fff; border-radius: 16px; box-shadow: var(--card-sh); }
.hv-ic { width: 46px; height: 46px; border-radius: 100px; background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.hv-row { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.hv-v2 { font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.hv-price .hv-l { margin-top: 4px; }

/* bottom: rating + buttons */
.hero-bottom { position: relative; margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.hero-rating { display: flex; align-items: center; gap: 12px; height: 44px; }
.hero-avs { display: flex; width: 94px; }
.hero-av { width: 42px; height: 42px; border-radius: 40px; box-shadow: 5px 8px 15px rgba(0, 0, 0, .15); display: block; flex: none; overflow: hidden; }
.hero-av + .hero-av { margin-left: -16px; }
.hero-av .paylogo { width: 42px !important; height: 42px !important; border-radius: 40px !important; border: 2px solid #fff; }
.hero-live-1 { display: flex; align-items: center; gap: 7px; height: 20px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.hero-live-2 { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--muted); }
.hero-btns { display: flex; gap: 16px; }

/* ---- phone screen (logical 360 × 780, perspective-mapped onto the mockup) ---- */
.ps { position: absolute; inset: 0; padding: 50px 16px 0; font-family: var(--font); color: var(--ink); letter-spacing: -.02em; }
.ps-head { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.ps-btn { width: 38px; height: 38px; border-radius: 50%; background: #f2f2f2; display: flex; align-items: center; justify-content: center; }
.ps-title { font-size: 18px; font-weight: 500; }
.ps-card { position: relative; margin-top: 34px; height: 198px; border-radius: 22px; padding: 18px 20px; color: #fff; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #6a7186 0%, #4f5568 55%, #474c5e 100%); box-shadow: 0 10px 24px rgba(40, 46, 66, .25); }
.ps-card::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px); background-size: 7px 7px; -webkit-mask-image: radial-gradient(70% 60% at 60% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 45%, #000 20%, transparent 75%); }
.ps-card > * { position: relative; }
.ps-card-top { display: flex; align-items: center; justify-content: space-between; }
.ps-lock { width: 36px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; }
.ps-status { height: 24px; padding: 0 10px; border-radius: 20px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; background: rgba(101, 155, 255, .22); color: #cfe0ff; transition: background-color .4s, color .4s; }
.ps-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ps[data-step="1"] .ps-status { background: rgba(245, 165, 36, .22); color: #ffd99a; }
.ps[data-step="2"] .ps-status { background: rgba(70, 161, 40, .28); color: #b9f0a4; }
.ps-amt { margin-top: 22px; font-size: 34px; font-weight: 500; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.ps-amt span { font-size: 20px; opacity: .8; }
.ps-from { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.ps-from span { opacity: .6; }
.ps-card-bot { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: flex-end; gap: 22px; }
.ps-k { font-size: 10px; color: rgba(255, 255, 255, .6); }
.ps-v { font-size: 14px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ps-via { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ps-via .paylogo { border-radius: 6px !important; }
.ps-bar { margin: 16px 4px 4px; height: 4px; border-radius: 4px; background: #eee; overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 33%; border-radius: 4px; background: var(--blue); transition: width .8s cubic-bezier(.65, 0, .35, 1), background-color .4s; }
.ps-row { display: flex; align-items: center; gap: 12px; height: 60px; margin-top: 8px; transition: opacity .45s; opacity: .38; }
.ps-row.on { opacity: 1; }
.ps-ic { width: 44px; height: 44px; border-radius: 50%; background: #f2f2f2; display: flex; align-items: center; justify-content: center; flex: none; transition: background-color .4s; }
.ps-row.done .ps-ic { background: rgba(70, 161, 40, .14); }
.ps-ic .paylogo { width: 26px !important; height: 26px !important; }
.ps-t p { font-size: 16px; font-weight: 500; }
.ps-t span { font-size: 12px; color: #a3a3a3; }
.ps-r { margin-left: auto; font-size: 15px; color: #6d6d6d; }
.ps-row.done .ps-r { color: var(--green); }
.ps-sec { margin-top: 22px; font-size: 18px; font-weight: 500; }
.ps-timer { margin-top: 12px; background: #f4f4f4; border-radius: 18px; padding: 16px 18px; }
.ps-timer p { font-size: 26px; font-weight: 500; }
.ps-timer span { font-size: 12px; color: #8a8a8a; }
.ps-cta { position: absolute; left: 16px; right: 16px; bottom: 40px; height: 52px; border-radius: 40px; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; }

/* tablet */
@media (max-width: 1199.98px) {
  .hero { height: 1140px; }
  .hero-c { width: 800px; }
  .hero-head { width: 800px; }
  .hero-vis { margin-top: 56px; }
  .hero-phone { width: 374px; margin-left: -187px; }
  .phone { width: 350px; height: 755px; }
  .phone-screen { transform: scale(.875) matrix3d(0.843589,-0.00578238,0,-9.08448e-05,-0.0534539,1.02072,0,-1.18035e-06,0,0,1,0,50.9764,27.1737,0,1); }
  .hv-sales { left: -32px; top: 275px; }
  .hv-pill-l { left: 38px; top: 121px; }
  .hv-pill-r { left: 630px; top: 335px; }
  .hv-price { left: 624px; top: 92px; }
  .hero-bottom { margin-top: 64px; }
}
/* mobile */
@media (max-width: 809.98px) {
  .hero { height: auto; padding: 140px 0 40px; }
  .hero-c { max-width: 100%; padding: 0 20px; }
  .hero-p { margin-top: 24px; }
  .hero-vis { height: 420px; margin-top: 56px; }
  .hero-phone { width: 317px; height: 420px; margin-left: -158px; }
  .phone { width: 293px; height: 633px; }
  .phone-screen { transform: scale(.7325) matrix3d(0.843589,-0.00578238,0,-9.08448e-05,-0.0534539,1.02072,0,-1.18035e-06,0,0,1,0,50.9764,27.1737,0,1); }
  .hv { display: none; }
  .hero-bottom { margin-top: 64px; padding: 0 20px; }
  .hero-btns { width: 100%; }
  .hero-btns .btn { flex: 1; padding: 0 12px; }
  .rot { height: 1.12em; }
}
