/* ==========================================================================
   SunTeam v2 — Sun Shopino (referral / affiliate) landing
   builds on unit.css
   ========================================================================== */

/* ---------- hero ---------- */
.shp-hero { position: relative; padding: 18px 0 56px; overflow: hidden; isolation: isolate; }
.shp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shp-hero-bg .b1, .shp-hero-bg .b2 { position: absolute; border-radius: 50%; filter: blur(90px); }
.shp-hero-bg .b1 { width: 520px; height: 520px; background: rgba(255,212,0,.45); top: -160px; left: -120px; animation: shp-drift 14s ease-in-out infinite; }
.shp-hero-bg .b2 { width: 420px; height: 420px; background: rgba(79,195,247,.25); bottom: -180px; right: 10%; animation: shp-drift 18s ease-in-out infinite reverse; }
.shp-hero-bg .grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(17,19,24,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 30% 40%, #000 15%, transparent 65%); }
.shp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; margin-top: 18px; }
.shp-copy { display: flex; flex-direction: column; gap: 20px; }
.shp-title { font-size: clamp(1.45rem, 1.05rem + 1.4vw, 1.9rem); font-weight: 900; line-height: 1.55; }
.shp-copy .lead { margin: 0; max-width: 560px; font-size: 1.06rem; }
.shp-copy .lead b { color: var(--text); }
.shp-copy .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.shp-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.shp-checks li { display: inline-flex; align-items: center; gap: 6px; }
.shp-checks .ic { color: var(--mint); }

/* phone mockup */
.shp-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.shp-ring { position: absolute; width: 470px; max-width: 96%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FFE45C 0, var(--sun-400) 55%, rgba(255,212,0,0) 56%); box-shadow: 0 0 0 26px rgba(255,212,0,.12), 0 0 0 54px rgba(255,212,0,.06); }
.phone { position: relative; z-index: 2; width: 260px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px; background: #111318; box-shadow: 0 50px 90px -30px rgba(17,19,24,.6), inset 0 0 0 2px #2a2e36; transform: rotate(-4deg); animation: shp-bob 7s ease-in-out infinite; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #111318; z-index: 3; }
.phone-screen { height: 100%; border-radius: 33px; background: #FFFDF5; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.ph-top { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); }
.ph-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-400); color: #111318; }
.ph-product { aspect-ratio: 1; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(17,19,24,.06); padding: 8px; }
.ph-product img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph-title { font-size: .8rem; line-height: 1.7; color: #111318; }
.ph-price { font-size: .78rem; font-weight: 800; color: var(--accent-ink); }
.ph-link { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #111318; color: #FFE45C; font-size: .68rem; font-weight: 700; overflow: hidden; white-space: nowrap; }
.ph-link span { overflow: hidden; text-overflow: ellipsis; }
.ph-share { display: flex; gap: 6px; }
.ph-share span { flex: 1; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #F1EFE7; color: #111318; }
.ph-share .ph-copy { flex: 2; display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--sun-400); font-size: .72rem; font-weight: 800; }

.shp-social { position: absolute; z-index: 3; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; box-shadow: 0 16px 30px -12px rgba(17,19,24,.45); animation: shp-bob 6s ease-in-out infinite; }
.shp-social .ic { width: 26px; height: 26px; }
.shp-social.s1 { background: linear-gradient(135deg, #FEDA75, #D62976 55%, #4F5BD5); top: 10%; inset-inline-end: 8%; }
.shp-social.s2 { background: #229ED9; top: 46%; inset-inline-end: 0; animation-delay: -2s; }
.shp-social.s3 { background: #25D366; bottom: 12%; inset-inline-end: 14%; animation-delay: -4s; }

.shp-notif { position: absolute; z-index: 4; top: 14%; inset-inline-start: -2%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 18px; font-size: var(--fs-sm); opacity: 0; transform: translateY(14px) scale(.96); }
.shp-notif.show { animation: shp-notif 4.2s var(--ease) both; }
.shp-notif small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.n-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); flex: none; }
.shp-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 18px; font-size: var(--fs-sm); animation: shp-bob 6.5s ease-in-out infinite; }
.shp-chip small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.shp-chip b { font-weight: 900; }
.shp-chip .fc-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); flex: none; }
.shp-chip.c1 { bottom: 36%; inset-inline-start: 0; animation-delay: -1.5s; }
.shp-chip.c2 { bottom: 8%; inset-inline-start: 2%; animation-delay: -3.5s; animation-duration: 7.5s; }

/* ---------- marquee ---------- */
.shp { overflow-x: clip; }
.shp-marquee { overflow: hidden; background: #111318; color: #fff; padding: 16px 0; transform: rotate(-1.2deg) scaleX(1.02); margin: 10px 0 0; }
.shp-marquee-track { display: flex; gap: 36px; width: max-content; animation: shp-marquee 38s linear infinite; }
.shp-marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.shp-marquee-track .ic { color: var(--sun-400); }

/* ---------- steps ---------- */
.shp-steps { position: relative; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shp-steps::before { content: ""; position: absolute; top: 38px; inset-inline: 12%; border-top: 2px dashed rgba(255,190,0,.6); }
.shp-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 10px; }
.st-ico { position: relative; width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); color: var(--text); transition: transform .35s var(--ease), background .35s; }
.st-ico .ic { width: 30px; height: 30px; }
.shp-steps li:hover .st-ico { transform: translateY(-6px) rotate(-6deg); background: var(--sun-400); }
.st-n { position: absolute; top: -6px; margin-inline-start: 62px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #111318; color: var(--sun-400); font-weight: 900; font-size: var(--fs-sm); }
.shp-steps b { margin-top: 8px; font-size: var(--fs-lg); font-weight: 800; }
.shp-steps p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.9; }

/* ---------- link builder ---------- */
.shp-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: 32px; background: linear-gradient(135deg, var(--sun-50), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.sb-copy { display: flex; flex-direction: column; gap: 14px; }
.sb-copy .text-2 { line-height: 2; }
.sb-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.sb-prod { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: var(--fs-xs); font-weight: 700; text-align: start; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.sb-prod img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.sb-prod:hover { transform: translateY(-2px); }
.sb-prod.is-active { box-shadow: inset 0 0 0 2px var(--sun-500), var(--sh-2); }
.sb-card { padding: 22px; border-radius: 26px; background: var(--surface); box-shadow: var(--sh-3, 0 30px 60px -30px rgba(17,19,24,.35)), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.sb-preview { display: flex; align-items: center; gap: 14px; }
.sb-preview img { width: 84px; height: 84px; border-radius: 18px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.sb-preview b { display: block; line-height: 1.8; }
.sb-preview .num { color: var(--accent-ink); font-weight: 800; font-size: var(--fs-sm); }
.sb-label { font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); margin-top: 6px; }
.sb-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: #111318; }
.sb-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #FFE45C; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; text-align: left; }
.sb-link code.flash { animation: shp-flash .6s ease; }
.sb-share { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 700; }
.sb-share > span { margin-inline-end: auto; }
.sb-s { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.sb-s.ig { background: linear-gradient(135deg, #FEDA75, #D62976 55%, #4F5BD5); }
.sb-s.tg { background: #229ED9; }
.sb-s.wa { background: #25D366; }
.sb-note { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.8; }

/* ---------- calculator ---------- */
.shp-calc { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 32px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); background: var(--surface); }
.calc-in { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.calc-in .h-2 { margin-top: -8px; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-sm); }
.calc-row small { color: var(--text-3); font-weight: 500; }
.calc-row output { font-size: var(--fs-lg); font-weight: 900; }
.calc-field input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: linear-gradient(to right, var(--surface-sunk, #EFEDE6) calc(100% - var(--p)), var(--sun-400) calc(100% - var(--p))); outline: none; cursor: pointer; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #111318; border: 4px solid var(--sun-400); box-shadow: 0 6px 14px -4px rgba(17,19,24,.5); }
.calc-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #111318; border: 4px solid var(--sun-400); }
.calc-out { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: clamp(22px, 4vw, 44px); color: #fff; background: radial-gradient(500px 300px at 0% 0%, rgba(255,212,0,.35), transparent 70%), #111318; overflow: hidden; }
.calc-out > span { color: rgba(255,255,255,.7); font-weight: 700; }
.calc-out strong { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 900; line-height: 1.2; color: var(--sun-400); }
.calc-out em { font-style: normal; color: rgba(255,255,255,.7); margin-top: -4px; }
.calc-year { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: var(--fs-sm); }
.calc-note { color: rgba(255,255,255,.5); font-size: var(--fs-xs); line-height: 1.8; margin-top: 8px; }

/* ---------- dashboard + benefits ---------- */
.shp-dash-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.shp-dash { padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: 0 40px 80px -40px rgba(17,19,24,.4), inset 0 0 0 1px var(--line); transform: perspective(1400px) rotateY(6deg); transition: transform .6s var(--ease); }
.shp-dash:hover { transform: none; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dash-kpis div { padding: 10px; border-radius: 14px; background: var(--surface-sunk, #F6F5F0); display: flex; flex-direction: column; gap: 2px; }
.dash-kpis span { font-size: var(--fs-xs); color: var(--text-3); }
.dash-kpis b { font-size: var(--fs-lg); font-weight: 900; }
.dash-kpis em { font-style: normal; font-size: var(--fs-xs); font-weight: 800; }
.dash-kpis .up { color: var(--mint); }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin: 16px 0; padding: 10px; border-radius: 16px; background: linear-gradient(to top, rgba(255,212,0,.08), transparent); }
.dash-chart span { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(to top, var(--sun-500), #FFE45C); transform-origin: bottom; animation: shp-bar 1s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.dash-chart span:last-child { background: linear-gradient(to top, #111318, #474D58); }
.dash-list { display: flex; flex-direction: column; gap: 6px; }
.dash-list div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px var(--line); }
.dash-list div span:nth-child(2) { flex: 1; }
.dash-list b { color: var(--mint); font-weight: 900; }
.dl-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--accent-ink); }
.shp-benefits { display: flex; flex-direction: column; gap: 22px; }
.shp-benefits .h-2 { margin-top: 12px; }
.bn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bn { padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.bn:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--sun-400), var(--sh-2); }
.bn .u-ico { width: 40px; height: 40px; border-radius: 13px; }
.bn b { display: block; margin: 10px 0 4px; font-weight: 800; }
.bn p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.8; }

.shp-cta { background: radial-gradient(600px 300px at 10% 0%, rgba(255,212,0,.4), transparent 70%), radial-gradient(500px 260px at 100% 100%, rgba(79,195,247,.22), transparent 70%), #111318; }

/* ---------- motion ---------- */
@keyframes shp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone { --r: -4deg; animation-name: shp-phone; }
@keyframes shp-phone { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
@keyframes shp-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, 40px); } }
@keyframes shp-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes shp-notif { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes shp-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes shp-flash { 0% { color: #fff; text-shadow: 0 0 12px #FFE45C; } 100% { color: #FFE45C; text-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .phone, .shp-social, .shp-chip, .shp-hero-bg i, .shp-marquee-track, .dash-chart span { animation: none; }
  .shp-notif { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .shp-steps::before { display: none; }
}
@media (max-width: 960px) {
  .shp-hero-grid, .shp-builder, .shp-calc, .shp-dash-wrap { grid-template-columns: 1fr; }
  .shp-visual { min-height: 520px; order: -1; }
  .shp-dash { transform: none; }
}
@media (max-width: 560px) {
  .shp-visual { min-height: 470px; }
  .phone { width: 220px; }
  .shp-ring { width: 360px; }
  .shp-notif { inset-inline-start: 0; top: 4%; }
  .shp-chip { padding: 7px 10px; font-size: var(--fs-xs); }
  .shp-chip.c2 { display: none; }
  .shp-social { width: 44px; height: 44px; border-radius: 14px; }
  .shp-steps { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .bn-grid { grid-template-columns: 1fr; }
  .shp-copy .hero-cta .btn { flex: 1; }
}
