/* M IN — home page only. Loaded after site.css. */

/* ---------- Hero: centred, phone below ---------- */
.home-hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; }
.home-hero h1 { font-size: clamp(2.8rem, 5.6vw + 0.8rem, 6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; max-width: 14ch; margin: 0 auto 0.3em; }
.home-hero .lead { margin: 0 auto 32px; max-width: 40ch; font-size: clamp(1.15rem, 0.8vw + 1rem, 1.55rem); }
.home-hero .stores { justify-content: center; }
.home-hero .hero-meta { justify-content: center; margin-top: 22px; }
.home-hero .kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.86rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.home-hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 0 rgba(48,209,88,0.5); animation: pulse 2s ease-out infinite; }

/* ---------- Phone ---------- */
.phone-wrap { position: relative; margin: clamp(44px, 6vw, 80px) auto 0; width: min(100%, 420px); padding-bottom: 0; }
.phone-glow { position: absolute; left: 50%; top: 40%; width: 140%; height: 90%; transform: translate(-50%, -30%); background: radial-gradient(ellipse at center, var(--coral-soft), transparent 62%); filter: blur(30px); pointer-events: none; }
.phone {
  position: relative; margin: 0 auto; width: min(100%, 390px); aspect-ratio: 390 / 820;
  border-radius: 56px; background: #0A0A0B;
  box-shadow: 0 0 0 1.5px #2C2C2E, 0 40px 80px -30px rgba(0,0,0,0.45), inset 0 0 0 2px #3A3A3C;
}
.phone-screen { position: absolute; inset: 12px; border-radius: 44px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; font-size: 14px; color: var(--text); text-align: left; }
@media (prefers-color-scheme: dark) { .phone-screen { background: #000; } }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 0; height: 44px; font-weight: 600; font-size: 13px; }
.ph-island { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 112px; height: 30px; border-radius: 20px; background: #000; }
.ph-icons { display: inline-flex; gap: 4px; }
.ph-icons i { width: 14px; height: 9px; border-radius: 2px; background: var(--text); opacity: 0.9; }
.ph-icons i:first-child { width: 10px; }
.ph-head { padding: 18px 20px 6px; display: flex; align-items: flex-end; justify-content: space-between; }
.ph-head b { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ph-head span { font-size: 12px; color: var(--muted); font-weight: 500; }
.ph-tabs { display: flex; gap: 6px; padding: 10px 20px 6px; overflow: hidden; }
.ph-tabs span { flex: none; padding: 7px 12px; border-radius: 980px; background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.ph-tabs span.on { background: var(--text); color: var(--bg); }
.ph-list { flex: 1; min-height: 0; overflow: hidden; padding: 8px 14px 0; display: grid; gap: 10px; align-content: start; }
.ph-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); display: grid; gap: 4px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-color-scheme: dark) { .ph-card { background: #1C1C1E; border-color: #2C2C2E; } }
.phone.is-in .ph-card { opacity: 1; transform: none; }
.phone.is-in .ph-card:nth-child(2) { transition-delay: .12s; }
.phone.is-in .ph-card:nth-child(3) { transition-delay: .24s; }
.ph-card .chip { font-size: 10px; letter-spacing: 0.06em; }
.ph-card b { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.ph-card > span { font-size: 12px; color: var(--muted); }
.ph-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ph-foot .avatars i { width: 22px; height: 22px; }
.ph-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 32px; padding: 0 14px; border-radius: 980px; background: var(--coral); color: #fff; font-style: normal; font-weight: 600; font-size: 12.5px; transition: background .35s ease, color .35s ease; overflow: hidden; }
.ph-btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s ease, transform .4s var(--ease); }
.ph-btn span + span { opacity: 0; transform: translateY(8px); }
.ph-card[data-s="requested"] .ph-btn { background: var(--bg-2); color: var(--muted); }
.ph-card[data-s="requested"] .ph-btn span:nth-child(1), .ph-card[data-s="in"] .ph-btn span:nth-child(1) { opacity: 0; transform: translateY(-8px); }
.ph-card[data-s="requested"] .ph-btn span:nth-child(2) { opacity: 1; transform: none; }
.ph-card[data-s="in"] .ph-btn { background: #30D158; color: #fff; }
.ph-card[data-s="in"] .ph-btn span:nth-child(2) { opacity: 0; transform: translateY(-8px); }
.ph-card[data-s="in"] .ph-btn span:nth-child(3) { opacity: 1; transform: none; }
.ph-toast { position: absolute; left: 14px; right: 14px; bottom: 86px; padding: 12px 14px; border-radius: 16px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.5); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.ph-toast i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), #F9A48F); flex: none; }
.ph-toast small { display: block; font-weight: 500; opacity: 0.7; font-size: 11.5px; }
.phone[data-toast="on"] .ph-toast { opacity: 1; transform: none; }
.ph-nav { display: flex; justify-content: space-around; padding: 12px 10px calc(14px + 10px); border-top: 1px solid var(--hairline); font-size: 10px; font-weight: 600; color: var(--muted); }
.ph-nav span { display: grid; justify-items: center; gap: 4px; }
.ph-nav span::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: currentColor; opacity: 0.35; }
.ph-nav span.on { color: var(--coral); }
.ph-nav span.on::before { opacity: 1; }
.ph-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: var(--text); opacity: 0.8; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; margin-top: clamp(48px, 7vw, 96px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: clamp(1.1rem, 1.4vw + 0.6rem, 1.6rem); font-weight: 650; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature-text .num { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 18px; }
.feature-text h2 { max-width: 14ch; }
.feature-text p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
.feature-mock { position: relative; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-text { order: 2; }
  .feature.flip .feature-mock { order: 1; }
}
.mock { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; max-width: 420px; margin: 0 auto; font-size: 15px; }
@media (prefers-color-scheme: dark) { .mock { background: #1C1C1E; border-color: #2C2C2E; } }
.mock-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.mock-title span { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
/* compose */
.mock-field { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); margin-bottom: 8px; }
.mock-field small { font-size: 0.74rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.mock-field b { font-weight: 600; font-size: 1rem; }
.mock-field .typing::after { content: "|"; color: var(--coral); animation: caret 1s steps(1) infinite; margin-left: 1px; }
@keyframes caret { 50% { opacity: 0; } }
.mock-spots { display: flex; gap: 6px; }
.mock-spots i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-spots i.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.mock-post { margin-top: 12px; width: 100%; height: 46px; border-radius: 980px; background: var(--coral); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
/* requests */
.mock-req { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.mock-req:first-of-type { border-top: 0; }
.mock-req .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2D6CDF, #7FB0FF); flex: none; }
.mock-req:nth-of-type(2) .av { background: linear-gradient(135deg, var(--coral), #F9A48F); }
.mock-req:nth-of-type(3) .av { background: linear-gradient(135deg, #1E9E6A, #7EDCB6); }
.mock-req b { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.mock-req b::after { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: #2D6CDF; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mock-req small { display: block; color: var(--muted); font-size: 0.82rem; }
.mock-req .acts { margin-left: auto; display: flex; gap: 6px; }
.mock-req .acts i { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 14px; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.mock-req.yes .acts i:first-child { background: #30D158; border-color: #30D158; color: #fff; }
.mock-req.yes .acts i:last-child { opacity: 0.3; }
/* chat */
.mock-chat { display: grid; gap: 8px; }
.bub { max-width: 78%; padding: 9px 13px; border-radius: 18px; background: var(--bg-2); font-size: 0.95rem; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.bub.me { margin-left: auto; background: var(--coral); color: #fff; }
.bub small { display: block; font-size: 0.74rem; font-weight: 600; color: var(--coral); margin-bottom: 2px; }
.bub.me small { color: rgba(255,255,255,0.8); }
.is-in .bub { opacity: 1; transform: none; }
.is-in .bub:nth-child(2) { transition-delay: .25s; } .is-in .bub:nth-child(3) { transition-delay: .5s; } .is-in .bub:nth-child(4) { transition-delay: .8s; } .is-in .bub:nth-child(5) { transition-delay: 1.1s; }
.bub.pin { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); max-width: 86%; }
.bub.pin::before { content: ""; width: 34px; height: 34px; border-radius: 10px; background: radial-gradient(circle at 50% 42%, var(--coral) 0 5px, transparent 6px), linear-gradient(135deg, #E8F0FE, #D7E6FF); flex: none; }
.bub.pin b { display: block; font-size: 0.9rem; }
.bub.pin span { font-size: 0.78rem; color: var(--muted); }
.live { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); font-size: 0.85rem; font-weight: 600; }
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2D6CDF; box-shadow: 0 0 0 0 rgba(45,108,223,0.5); animation: pulse-b 1.8s ease-out infinite; }
@keyframes pulse-b { 0% { box-shadow: 0 0 0 0 rgba(45,108,223,0.55); } 70% { box-shadow: 0 0 0 9px rgba(45,108,223,0); } 100% { box-shadow: 0 0 0 0 rgba(45,108,223,0); } }
.live span { margin-left: auto; color: var(--muted); font-weight: 500; }

/* ---------- Numbers ---------- */
.numbers { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--hairline); }
@media (min-width: 800px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers b { display: block; font-size: clamp(2.8rem, 4.4vw + 1rem, 5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.numbers b.c { color: var(--coral); }
.numbers span { display: block; margin-top: 10px; color: var(--text-2); font-size: 1rem; max-width: 20ch; }

/* ---------- Safety (black) ---------- */
.safety { background: #000; color: #F5F5F7; padding: clamp(64px, 9vw, 128px) 0; }
.safety h2 { max-width: 15ch; }
.safety .lead { color: inherit; opacity: 0.7; }
.safety ul { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .safety ul { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.safety li { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.3); }
.safety li strong { display: block; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.safety li span { opacity: 0.7; }
.safety .btn-on-dark { margin-top: 40px; }

/* ---------- Cities ---------- */
.cities { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cities { grid-template-columns: 1fr 1fr; } }
.city { display: block; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-card); background: var(--bg-2); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.city:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.city b { display: block; font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.6rem); font-weight: 600; letter-spacing: -0.025em; }
.city span { display: block; margin-top: 8px; color: var(--text-2); }
.city em { display: inline-block; margin-top: 18px; font-style: normal; font-weight: 600; color: var(--coral); }
.city.soon { background: transparent; border: 1.5px dashed var(--border); }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.closing h2 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.closing .lead { margin: 20px auto 32px; }
.closing .stores { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .ph-card, .bub { opacity: 1; transform: none; transition: none; }
  .mock-field .typing::after, .live::before, .home-hero .kicker::before { animation: none; }
}

@media (max-width: 480px) { .phone { border-radius: 48px; } .phone-screen { border-radius: 38px; } .ph-head b { font-size: 24px; } }

/* Photo avatars (Pexels licence, assets/faces/LICENCE.txt) */
.avatars img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; margin-left: -8px; display: block; }
.avatars img:first-child { margin-left: 0; }
.ph-foot .avatars img { width: 24px; height: 24px; }
.ph-toast img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.mock-req img.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: none; }

/* Chat with faces */
.mock-chat .bub { position: relative; }
.mock-chat .bub:not(.me):not(.pin) { margin-left: 36px; }
.mock-chat .bub .who { position: absolute; left: -36px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
/* Photo thumbnails on feed cards */
.ph-card.has-photo { grid-template-columns: minmax(0, 1fr) 64px; grid-template-areas: "chip photo" "title photo" "meta photo" "foot foot"; column-gap: 12px; }
.ph-card.has-photo .chip { grid-area: chip; } .ph-card.has-photo b { grid-area: title; } .ph-card.has-photo > span:not(.chip) { grid-area: meta; } .ph-card.has-photo .ph-foot { grid-area: foot; }
.ph-card .ph-photo { grid-area: photo; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; align-self: start; }
