/* The features landing page: device frames, scroll reveals, floating chips. */

/* Reveal on scroll (only when JavaScript is on, so the page reads fine without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-slow, .pulse-dot, .typing i { animation: none !important; }
}

/* Hero */
.lp-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #e9e2ff 0%, transparent 60%), radial-gradient(900px 500px at -10% 20%, #ffe9f1 0%, transparent 55%), #fbfaff; }
.lp-hero .wrap { display: grid; gap: 36px; padding-top: 48px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .lp-hero .wrap { grid-template-columns: 1.02fr 1fr; padding-top: 72px; padding-bottom: 96px; } }
.lp-hero h1 { font-size: clamp(34px, 6.2vw, 60px); }
.lp-hero .lead { margin-bottom: 26px; }

/* Device frames */
.stage { position: relative; min-height: 520px; }
@media (min-width: 720px) { .stage { min-height: 560px; } }
.laptop { position: absolute; right: 3%; top: 36px; width: 84%; display: none; }
@media (min-width: 720px) { .laptop { display: block; } }
.laptop .screen { border-radius: 16px 16px 6px 6px; background: #0f0f14; padding: 12px 12px 14px; box-shadow: 0 40px 80px -30px rgba(40, 20, 90, 0.45); }
.laptop .screen img { display: block; width: 100%; border-radius: 6px; aspect-ratio: 16 / 10; object-fit: cover; }
.laptop .base { height: 14px; margin: 0 -6%; background: linear-gradient(#d9d7e4, #b9b6c8); border-radius: 0 0 16px 16px; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #a9a6b8; border-radius: 0 0 8px 8px; }
.phone { position: relative; width: 250px; border-radius: 42px; background: #0f0f14; padding: 9px; box-shadow: 0 50px 80px -30px rgba(40, 20, 90, 0.55), inset 0 0 0 2px #2a2934; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); background: #0f0f14; border-radius: 999px; z-index: 2; }
.phone img { display: block; width: 100%; border-radius: 34px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #fff; box-sizing: border-box; border-top: 26px solid #fff; }
.stage .phone.front { z-index: 2; margin: 56px auto 0; }
@media (min-width: 720px) { .stage .phone.front { position: absolute; left: 0; bottom: 0; margin: 0; } }

/* Floating chips */
.chip-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: 0 14px 30px -14px rgba(40, 20, 90, 0.35); font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.chip-float small { display: block; font-weight: 600; font-size: 11.5px; color: var(--ink3); }
.chip-float .ico { width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; background: var(--soft); }
.float { animation: float 5s ease-in-out infinite; }
.float-slow { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.c1 { left: 6%; top: 0; }
.c2 { right: 0; top: 150px; animation-delay: -2s; }
.c3 { right: 10%; bottom: 36px; animation-delay: -1s; }
.c4 { right: 4%; top: 300px; animation-delay: -3s; }
/* Phones: two small chips above the phone, nothing over the screenshot */
@media (max-width: 719px) {
  .chip-float { padding: 7px 10px; font-size: 12px; gap: 6px; border-radius: 13px; }
  .chip-float small { display: none; }
  .chip-float .ico { width: 24px; height: 24px; font-size: 13px; border-radius: 8px; }
  .c1 { left: 0; top: 0; }
  .c2 { right: 0; top: 0; }
  .c3, .c4 { display: none; }
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Problem cards */
.pain { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; overflow: hidden; }
.pain .big { font-size: 34px; line-height: 1; }
.pain h3 { margin-top: 12px; }
.pain p { margin: 6px 0 0; font-size: 15px; }
.pain .tag { position: absolute; top: 16px; right: 16px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #e11d48; background: #fff1f2; padding: 4px 9px; border-radius: 999px; }

/* Fix rows: text + phone, alternating */
.fix { display: grid; gap: 28px; align-items: center; padding: 30px 0; }
@media (min-width: 860px) { .fix { grid-template-columns: 1fr 1fr; gap: 56px; } .fix.flip .fix-media { order: -1; } }
.fix-media { position: relative; display: flex; justify-content: center; }
.fix-media::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(106, 76, 255, 0.18), transparent 65%); }
.fix.warm .fix-media::before { background: radial-gradient(circle, rgba(255, 92, 138, 0.2), transparent 65%); }
.fix .phone { width: 240px; }
.fix .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.fix.warm .kicker { color: var(--warm); }
.fix h3 { font: 800 clamp(24px, 3.4vw, 32px)/1.15 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; margin: 8px 0 10px; }
.fix ul { list-style: none; padding: 0; margin: 14px 0 0; }
.fix li { position: relative; padding-left: 28px; margin: 8px 0; }
.fix li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Why section */
.why { background: #16131f; color: #fff; }
.why h2 { color: #fff; }
.why .sub, .why p { color: rgba(255, 255, 255, 0.72); }
.why .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.why .card h3 { color: #fff; }
.why .icon { background: rgba(255, 255, 255, 0.1); }
.vs { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 760px) { .vs { grid-template-columns: repeat(3, 1fr); } }
.vs div { border-radius: 18px; padding: 16px 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.vs b { display: block; color: #fff; margin-bottom: 4px; }

/* Wide laptop showcase */
.showcase { position: relative; max-width: 900px; margin: 0 auto; padding: 0 5% 30px; }
.showcase .laptop { position: relative; display: block; left: auto; top: auto; transform: none; width: 100%; }
.showcase .phone { position: absolute; right: 1%; bottom: 0; width: 170px; }
@media (max-width: 640px) { .showcase .phone { width: 120px; right: 0; bottom: 0; padding: 6px; border-radius: 28px; } .showcase .phone img { border-radius: 23px; border-top-width: 16px; } .showcase .phone::before { top: 10px; width: 46px; height: 13px; } }

.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.stats div { font-weight: 800; font-size: 26px; font-family: "Plus Jakarta Sans", Inter, sans-serif; color: var(--ink); }
.stats small { display: block; font: 600 13px/1.3 Inter, sans-serif; color: var(--ink3); }
