/* Laohat home (coming soon) — builds on legal.css tokens. */
:root {
  --plum: #A04A80;
  --rose: #C88094;
  --peach: #E2B091;
  --gold: #D9AE2C;
  --clay: #A86650;
  --latte: #C4A07A;
}

body.home { overflow-x: hidden; }
.home .wrap { max-width: 1100px; padding-block: 20px 40px; }
.home header.site { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding: 48px 0 72px; }
.hero .blobs { position: absolute; inset: -80px -200px auto; height: 620px; z-index: -1; pointer-events: none; filter: blur(60px); opacity: 0.45; }
.blob { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 340px; height: 340px; background: var(--plum); top: 40px; inset-inline-start: 8%; }
.blob.b2 { width: 260px; height: 260px; background: var(--peach); top: 220px; inset-inline-start: 40%; animation-delay: -6s; }
.blob.b3 { width: 220px; height: 220px; background: var(--gold); top: 60px; inset-inline-end: 6%; animation-delay: -12s; opacity: 0.7; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--plum); position: relative; }
.badge .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--plum); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.15; margin: 18px 0 14px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--plum), var(--rose), var(--peach), var(--gold)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }

/* ---------- Phone mock with a scrolling feed ---------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone { width: 280px; height: 560px; border-radius: 42px; background: var(--card); border: 10px solid var(--text); box-shadow: 0 40px 80px -30px rgba(40,20,30,.45); overflow: hidden; position: relative; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.phone .bar { height: 54px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: var(--card); position: relative; z-index: 1; }
.phone .bar img { width: 30px; height: 30px; }
.js .feed { animation: scrollfeed 22s linear infinite; }
@keyframes scrollfeed { to { transform: translateY(-50%); } }
.card { padding: 10px 12px 14px; }
.card .who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.card .av { width: 24px; height: 24px; border-radius: 50%; }
.card .art { height: 210px; border-radius: 12px; position: relative; overflow: hidden; }
.card .acts { display: flex; gap: 12px; margin-top: 8px; font-size: 15px; }
.card .sale { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.92); color: #1A140F; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.art.a1 { background: radial-gradient(circle at 30% 30%, var(--gold) 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, var(--rose) 0 26%, transparent 27%), linear-gradient(135deg, var(--plum), #5E2A4C); }
.art.a2 { background: repeating-linear-gradient(45deg, var(--peach) 0 14px, var(--latte) 14px 28px); }
.art.a3 { background: conic-gradient(from 30deg, var(--clay), var(--gold), var(--peach), var(--rose), var(--plum), var(--clay)); }
.art.a4 { background: radial-gradient(ellipse at 50% 110%, var(--clay) 0 40%, transparent 41%), linear-gradient(180deg, #F6E2C6, var(--peach)); }
.heart { display: inline-block; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.35); } 90% { transform: scale(.95); } }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block > h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 36px); text-wrap: balance; }
section.block > .sub { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: transform .25s ease, border-color .25s ease; }
.feat:hover { transform: translateY(-4px); border-color: var(--latte); }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }

/* Art-only marquee of crafts */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin: 8px 0 28px; }
.marquee .track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
[dir="rtl"] .marquee .track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.chip { white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; }
.not-allowed { display: flex; flex-wrap: wrap; gap: 10px; }
.not-allowed span { border: 1px dashed var(--line); color: var(--muted); border-radius: 999px; padding: 6px 16px; text-decoration: line-through; text-decoration-color: var(--plum); }

/* Coming soon panel */
.soon { text-align: center; background: var(--text); color: var(--bg); border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.soon h2 { color: inherit; border: 0; margin: 0 0 10px; padding: 0; font-size: clamp(28px, 4vw, 40px); }
.soon p { opacity: .8; margin: 0 auto 24px; max-width: 34em; font-size: 18px; }
.soon .btn.primary { background: var(--latte); color: #1A140F; }
.soon .ring { position: absolute; border: 2px solid var(--latte); border-radius: 50%; opacity: .25; animation: spin 30s linear infinite; }
.soon .ring.r1 { width: 380px; height: 380px; top: -190px; inset-inline-end: -120px; border-style: dashed; }
.soon .ring.r2 { width: 240px; height: 240px; bottom: -120px; inset-inline-start: -60px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .grid .reveal:nth-child(5) { transition-delay: .08s; }
.js .grid .reveal:nth-child(6) { transition-delay: .16s; }

.home footer.site { justify-content: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .hero .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .phone { width: 240px; height: 480px; }
  .card .art { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .hero { gap: 28px; padding-bottom: 48px; }
  .hero .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  section.block { padding: 40px 0; }
  .soon { padding: 40px 18px; border-radius: 22px; }
  .soon .btn { max-width: 100%; }
}
