/* Home-page-only sections: the "accept an invite" activity feed and the
   "They see Busy" privacy band. Loaded after site.css and demo.css. */

/* ---------- how it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how .wrap { display: flex; align-items: center; gap: 80px; padding-top: 96px; padding-bottom: 96px; }
.how-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.steps-wrap { position: relative; padding-left: 28px; }
.steps-wrap::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.steps-wrap .prog { position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--accent); transform-origin: top; animation: prog 9s infinite cubic-bezier(.65,0,.35,1); }
.steps li { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.steps strong { font-size: 19px; font-weight: 600; }
.steps span { font-size: 15px; line-height: 1.5; }
.act { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.16,1,.3,1); }
.S1 { animation-name: S1; } .S2 { animation-name: S2; } .S3 { animation-name: S3; } .S4 { animation-name: S4; }
.A1 { animation-name: A1; } .A2 { animation-name: A2; } .A3 { animation-name: A3; } .A4 { animation-name: A4; }
@keyframes prog { 0%,4% { transform: scaleY(0); } 24% { transform: scaleY(.25); } 46% { transform: scaleY(.5); } 68% { transform: scaleY(.75); } 93% { transform: scaleY(1); } 98%,100% { transform: scaleY(1); opacity: 0; } }
@keyframes S1 { 0%,3% { color: var(--step-dim); } 6%,24% { color: var(--ink); } 28%,100% { color: var(--step-dim); } }
@keyframes S2 { 0%,25% { color: var(--step-dim); } 28%,46% { color: var(--ink); } 50%,100% { color: var(--step-dim); } }
@keyframes S3 { 0%,47% { color: var(--step-dim); } 50%,68% { color: var(--ink); } 72%,100% { color: var(--step-dim); } }
@keyframes S4 { 0%,69% { color: var(--step-dim); } 72%,95% { color: var(--ink); } 98%,100% { color: var(--step-dim); } }
@keyframes A1 { 0%,4% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 9%,93% { opacity: 1; transform: none; filter: blur(0); } 98%,100% { opacity: 0; } }
@keyframes A2 { 0%,26% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 31%,93% { opacity: 1; transform: none; filter: blur(0); } 98%,100% { opacity: 0; } }
@keyframes A3 { 0%,48% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 53%,93% { opacity: 1; transform: none; filter: blur(0); } 98%,100% { opacity: 0; } }
@keyframes A4 { 0%,70% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 75%,93% { opacity: 1; transform: none; filter: blur(0); } 98%,100% { opacity: 0; } }

.feed { flex: 0 0 520px; max-width: 520px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -44px var(--shadow); overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.feed-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 12px; }
.feed-head .app-icon { width: 36px; height: 36px; border-radius: 9px; }
.feed-head .app-icon svg { width: 27px; height: 27px; }
.feed-title { display: flex; flex-direction: column; }
.feed-title b { font-size: 17px; font-weight: 600; }
.feed-title span, .feed-row small, .feed-row time { font-size: 13px; color: var(--muted); }
.syncing { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); }
.syncing i { width: 7px; height: 7px; border-radius: 999px; background: var(--ok); }
.feed-rows { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 14px; }
.feed-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; }
.feed-row.hl { background: var(--feed-hl); }
.feed-row .ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.feed-row .ic svg { width: 18px; height: 18px; }
.feed-row .txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.feed-row time { font-size: 12px; white-space: nowrap; }

/* ---------- privacy band ---------- */
.privacy { margin-top: 96px; }
.band { display: flex; align-items: center; gap: 64px; padding: 56px 64px; border-radius: 24px; background: var(--band); border: 1px solid var(--band-line); color: var(--band-ink); }
.band-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.band h2 .warm { font-style: italic; color: var(--band-warm); }
.band p { max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--band-muted); }
.band .note { font-size: 14px; color: var(--band-muted); }
.band-demo { flex: 0 0 440px; display: flex; flex-direction: column; gap: 14px; }
.band-row { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 18px; border-radius: 14px; background: var(--band-sub); font-size: 15px; }
.band-row > span:first-child { color: var(--band-muted); }
.band-row b { font-weight: 600; }
.redact-box { position: relative; width: 150px; height: 26px; }
.redact-box b { position: absolute; right: 0; top: 2px; white-space: nowrap; }
.redact-box .after { color: var(--band-warm); opacity: 0; }
.redact-box .bar { position: absolute; left: 0; top: 0; width: 150px; height: 26px; border-radius: 4px; background: var(--band-warm); transform: scaleX(0); }
.privA { animation: privA 6s infinite; } .privB { animation: privB 6s infinite; } .redact { animation: redact 6s infinite cubic-bezier(.65,0,.35,1); }
@keyframes redact { 0%,28% { transform: scaleX(0); transform-origin: left; } 40% { transform: scaleX(1); transform-origin: left; } 41% { transform: scaleX(1); transform-origin: right; } 54%,100% { transform: scaleX(0); transform-origin: right; } }
@keyframes privA { 0%,39% { opacity: 1; } 40%,94% { opacity: 0; } 97%,100% { opacity: 1; } }
@keyframes privB { 0%,39% { opacity: 0; } 40%,92% { opacity: 1; } 96%,100% { opacity: 0; } }


@media (max-width: 1260px) {
  .how .wrap { flex-direction: column; align-items: stretch; gap: 48px; }
  .feed { flex: none; max-width: 560px; width: 100%; }
  .band { flex-direction: column; align-items: stretch; gap: 32px; }
  .band-demo { flex: none; }
}
@media (max-width: 620px) {
  .how .wrap { padding-top: 64px; padding-bottom: 64px; }
  .feed-row { padding: 12px 10px; gap: 12px; }
  .feed-row time { display: none; }
  .privacy { margin-top: 64px; }
  .band { padding: 32px 22px; }
  .band-row { padding: 0 14px; font-size: 14px; }
  .redact-box, .redact-box .bar { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .act, .privA, .privB { transform: none !important; filter: none !important; }
  .redact { animation: none; }
  .steps-wrap .prog { animation: none; transform: none; }
}
