/* Homepage 2026: animated hero, before/after, a day with Easymandat, guide, reveal on scroll */
.hm-hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 85% -10%, #DCEBCF 0%, rgba(220,235,207,0) 60%), radial-gradient(700px 420px at -10% 110%, #EAF3E2 0%, rgba(234,243,226,0) 60%), #F7FAF4; }
.hm-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(63,125,32,.10) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 70%); pointer-events: none; }
.hm-hero .em-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (max-width: 1000px) { .hm-hero .em-wrap { grid-template-columns: 1fr; padding-top: 48px; } }
.hm-hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 20px; }
.hm-hero h1 em { font-style: normal; background: linear-gradient(90deg, #2F5F17, #4E9A28); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .hm-hero h1 { font-size: 40px; } }
.hm-lead { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 580px; margin: 0 0 28px; }
.hm-proof { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; color: var(--text-2); }
.hm-proof .hm-faces { display: flex; }
.hm-proof .hm-faces img { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #F7FAF4; margin-left: -10px; object-fit: cover; }
.hm-proof .hm-faces img:first-child { margin-left: 0; }
.hm-stars { color: #E7A400; letter-spacing: 2px; font-size: 15px; }

/* Live scene: phone + floating notifications */
.hm-scene { position: relative; min-height: 600px; display: flex; justify-content: center; align-items: center; }
.hm-scene .em-phone { width: 300px; transform: rotate(2deg); box-shadow: 0 50px 80px -30px rgba(15,23,42,.45); }
.hm-scene .em-phone-screen { min-height: 540px; }
.hm-scene .em-bubble, .hm-typing { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.hm-scene .is-on { opacity: 1; transform: none; }
.hm-typing { align-self: flex-end; background: var(--accent); border-radius: 18px; padding: 12px 14px; display: inline-flex; gap: 4px; }
.hm-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); animation: hm-dot 1s infinite; }
.hm-typing i:nth-child(2) { animation-delay: .15s; } .hm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hm-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.hm-note { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: 0 18px 40px -12px rgba(15,23,42,.25); display: flex; gap: 12px; align-items: center; font-size: 14px; min-width: 230px; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s, transform .5s; }
.hm-note.is-on { opacity: 1; transform: none; }
.hm-note b { display: block; color: var(--ink); font-size: 14px; }
.hm-note span { color: var(--text-3); font-size: 13px; }
.hm-note .hm-ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.hm-note-1 { top: 40px; left: -10px; } .hm-note-1 .hm-ico { background: #FFF4D6; }
.hm-note-2 { top: 250px; right: -20px; } .hm-note-2 .hm-ico { background: var(--accent-soft); }
.hm-note-3 { bottom: 40px; left: 0; } .hm-note-3 .hm-ico { background: #E0EDFF; }
@media (max-width: 560px) { .hm-note-1 { left: 0; top: 0; } .hm-note-2 { right: 0; } .hm-note { min-width: 0; max-width: 240px; } }
.hm-scene-caption { position: absolute; bottom: -6px; right: 10px; font-size: 12px; color: var(--text-3); }

/* Before / after */
.hm-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .hm-vs { grid-template-columns: 1fr; } }
.hm-vs > div { border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.hm-vs .hm-before { background: #F8FAFC; border: 1px solid var(--border); }
.hm-vs .hm-after { background: linear-gradient(160deg, #2F5F17, #3F7D20 60%, #57A12F); color: #fff; box-shadow: 0 30px 60px -30px rgba(47,95,23,.6); }
.hm-vs h3 { font-size: 24px; }
.hm-vs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.hm-vs li { display: flex; gap: 12px; align-items: flex-start; }
.hm-vs .hm-before li { color: var(--text-2); }
.hm-vs .hm-x, .hm-vs .hm-v { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.hm-vs .hm-x { background: #FEE2E2; color: #B91C1C; }
.hm-vs .hm-v { background: rgba(255,255,255,.2); color: #fff; }

/* A day with Easymandat */
.hm-day { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-day::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft)); }
@media (max-width: 900px) { .hm-day { grid-template-columns: 1fr 1fr; } .hm-day::before { display: none; } }
@media (max-width: 520px) { .hm-day { grid-template-columns: 1fr; } }
.hm-day article { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hm-day time { position: relative; z-index: 1; font-family: var(--font-title); font-weight: 700; font-size: 17px; background: #fff; border: 2px solid var(--accent); color: var(--accent-hover); border-radius: 999px; padding: 14px 18px; }
.hm-day h3 { font-size: 19px; }
.hm-day p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 240px; }

/* Guide */
.hm-guide { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 56px; overflow: hidden; position: relative; }
.hm-guide::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(87,161,47,.45), transparent 65%); }
@media (max-width: 860px) { .hm-guide { grid-template-columns: 1fr; padding: 36px 28px; } }
.hm-book { position: relative; width: 210px; aspect-ratio: 3 / 4; border-radius: 8px 16px 16px 8px; background: linear-gradient(150deg, #2E5E17, #3F7D20 55%, #6BA34A); padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-5deg); box-shadow: 20px 26px 50px rgba(0,0,0,.45), inset 9px 0 0 rgba(0,0,0,.15); }
.hm-book small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hm-book strong { font-family: var(--font-title); font-size: 26px; line-height: 1.05; }
.hm-book span { font-size: 13px; opacity: .9; }
.hm-guide h2 { color: #fff; font-size: 36px; line-height: 1.1; margin: 10px 0 12px; }
.hm-guide p { color: rgba(255,255,255,.78); font-size: 18px; margin: 0 0 22px; max-width: 560px; }
.hm-guide ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; color: rgba(255,255,255,.9); }
@media (max-width: 560px) { .hm-guide ul { grid-template-columns: 1fr; } }
.hm-guide li::before { content: "✓"; color: #8FD16A; font-weight: 700; margin-right: 8px; }
.hm-guide .em-tag { background: rgba(143,209,106,.18); color: #B6E59A; }
.hm-guide > * { position: relative; }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .hm-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .hm-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-scene .em-bubble, .hm-typing, .hm-note { opacity: 1; transform: none; transition: none; } .hm-typing { display: none; } }

/* Mobile sticky CTA */
.hm-sticky { display: none; }
@media (max-width: 760px) {
  .hm-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 800; gap: 8px; padding: 8px; background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 30px rgba(15,23,42,.18); transform: translateY(140%); transition: transform .3s; }
  .hm-sticky.is-on { transform: none; }
  .hm-sticky .em-btn { flex: 1; justify-content: center; }
}
