/* Kanisa app look (round 147): the same layout as the Android app's home page. Shared by /app and by every church address. */
:root { --navy:#1E2D8C; --navy2:#14226e; --ink:#1f2340; --muted:#5b6080; --bg:#F6F7FB; --card:#fff; --gold:#D9A11B; --bad:#b42318; --ok:#0b6b45; }
* { box-sizing:border-box; }
html, body { margin:0; }
body.kpwa { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--ink); min-height:100vh; min-height:100dvh; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); -webkit-text-size-adjust:100%; }
.kpwa .hidden { display:none !important; }
.kpwa header.bar { display:flex; align-items:center; gap:6px; padding:8px 8px 4px; min-height:56px; }
.kpwa header.bar h1 { flex:1; margin:0; text-align:center; font-size:1.08rem; color:var(--navy); font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpwa .icon-btn { flex:none; width:44px; height:44px; border:0; border-radius:12px; background:transparent; color:var(--navy); display:grid; place-items:center; cursor:pointer; }
.kpwa .icon-btn:focus-visible, .kpwa .btn:focus-visible, .kpwa a:focus-visible, .kpwa button:focus-visible, .kpwa input:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.kpwa .icon-btn svg { width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.kpwa main { max-width:560px; margin:0 auto; padding:0 14px 28px; }
.kpwa .hero { position:relative; height:210px; border-radius:22px; background:linear-gradient(135deg,#14226e,#1E2D8C 60%,#2a4aa8) center/cover no-repeat; box-shadow:0 6px 20px rgba(20,34,110,.18); margin-bottom:62px; }
.kpwa .logo-badge { position:absolute; left:50%; bottom:-52px; transform:translateX(-50%); width:104px; height:104px; border-radius:24px; background:#0B1240; border:3px solid #fff; box-shadow:0 6px 18px rgba(0,0,0,.28); display:grid; place-items:center; overflow:hidden; }
.kpwa .logo-badge img { width:100%; height:100%; object-fit:cover; }
.kpwa main { text-align:center; }
.kpwa .card, .kpwa form { text-align:left; }
.kpwa .church { text-align:center; margin:10px 0 2px; font-size:1.55rem; font-weight:800; color:var(--navy); line-height:1.15; }
.kpwa .sub { text-align:center; color:var(--muted); font-size:.95rem; margin:0 0 14px; }
.kpwa .btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:56px; border:0; border-radius:18px; background:var(--navy); color:#fff; font-size:1.05rem; font-weight:700; cursor:pointer; text-decoration:none; gap:10px; }
.kpwa .btn.signin { justify-content:flex-start; padding:10px 14px; gap:14px; text-align:left; box-shadow:0 8px 20px rgba(30,45,140,.28); min-height:76px; border-radius:22px; }
.kpwa .btn.signin .ico { flex:none; width:48px; height:48px; border-radius:14px; background:rgba(255,255,255,.16); display:grid; place-items:center; }
.kpwa .btn.signin .ico svg { width:26px; height:26px; fill:#fff; }
.kpwa .btn.signin .tx { flex:1; min-width:0; } .kpwa .btn.signin .tx b { display:block; font-size:1.2rem; } .kpwa .btn.signin .tx span { font-size:.9rem; opacity:.85; font-weight:500; }
.kpwa .btn.signin .go { flex:none; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.18); display:grid; place-items:center; } .kpwa .btn.signin .go svg { width:20px; height:20px; stroke:#fff; fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.kpwa .btn[disabled] { opacity:.6; cursor:wait; }
.kpwa .btn.gold { background:var(--gold); color:#1b1400; } .kpwa .btn.line { background:#fff; color:var(--navy); border:2px solid var(--navy); }
.kpwa .link { display:block; margin:6px auto; background:none; border:0; color:#5a2d91; font-size:.98rem; padding:12px; min-height:44px; cursor:pointer; text-align:center; width:100%; }
.kpwa .card { background:var(--card); border-radius:18px; padding:16px; box-shadow:0 4px 18px rgba(11,18,64,.08); border:1px solid #ecebf5; }
.kpwa label { display:block; font-weight:700; margin:0 0 8px; }
.kpwa input.code { width:100%; font-size:1.3rem; letter-spacing:.08em; text-transform:uppercase; padding:14px; border:2px solid #cfd3f0; border-radius:14px; background:#fff; color:var(--ink); }
.kpwa .msg { min-height:1.4em; margin:10px 0 0; font-size:.92rem; color:var(--muted); text-align:center; } .kpwa .msg.bad { color:var(--bad); font-weight:600; }
.kpwa h2.sec { text-align:center; font-size:1.05rem; color:var(--ink); margin:20px 0 12px; font-weight:600; }
.kpwa .grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.kpwa a.tile { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; min-height:84px; padding:8px 4px 8px; border-radius:18px; color:#fff; text-decoration:none; background:linear-gradient(160deg,var(--c1),var(--c2)); box-shadow:0 4px 10px var(--sh); text-align:center; }
.kpwa a.tile svg { width:34px; height:34px; stroke:rgba(255,255,255,.9); fill:rgba(255,255,255,.22); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.kpwa a.tile img { width:34px; height:34px; object-fit:contain; }
.kpwa a.tile span { font-size:.72rem; font-weight:600; line-height:1.15; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:380px) { .kpwa .grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.kpwa .reg { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:16px; } .kpwa .reg a { color:#5a2d91; font-weight:600; text-decoration:none; padding:10px 4px; min-height:44px; display:inline-flex; align-items:center; }
.kpwa .install { margin-top:16px; background:#fff8e6; border:1px solid #f0d58a; border-radius:16px; padding:14px; font-size:.92rem; line-height:1.45; } .kpwa .install b { display:block; margin-bottom:4px; } .kpwa .install .btn { margin-top:10px; min-height:48px; }
.kpwa .strip { position:fixed; left:0; right:0; top:0; z-index:90; background:#b42318; color:#fff; text-align:center; font-size:.85rem; padding:6px 10px; padding-top:calc(6px + env(safe-area-inset-top)); }

/* Round 148: one phone screen, no scrolling; the whole picture is always visible; tools swipe sideways */
.kpwa main { padding-bottom:12px; }
.kpwa .hero { height:clamp(96px,18dvh,170px); background-size:contain; background-position:center; background-repeat:no-repeat; margin-bottom:50px; }
.kpwa .logo-badge { width:92px; height:92px; bottom:-44px; border-radius:22px; }
.kpwa .church { font-size:1.4rem; margin-top:6px; }
.kpwa .sub { font-size:.88rem; margin-bottom:10px; }
.kpwa .btn.signin { min-height:68px; }
.kpwa h2.sec { margin:12px 0 8px; font-size:.98rem; }
.kpwa .grid { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x proximity; padding:2px 2px 8px; margin:0 -14px; padding-left:14px; padding-right:14px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.kpwa .grid::-webkit-scrollbar { display:none; }
.kpwa .grid > a.tile { flex:0 0 84px; scroll-snap-align:start; }
.kpwa .reg { margin-top:6px; padding:6px 14px; }
@media (max-height:640px) { .kpwa .hero { height:90px; margin-bottom:46px; } .kpwa .logo-badge { width:80px; height:80px; bottom:-40px; } }
.kpwa .hero-default { height:auto; aspect-ratio:656/176; background-size:100% 100%; }
.kpwa .hero-custom { background-color:#14226e; }
.kpwa .church { font-size:1.2rem; } .kpwa .btn.signin .tx span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpwa .install { display:flex; align-items:center; gap:10px; padding:10px 12px; margin-top:10px; } .kpwa .install b { margin:0; flex:1; font-size:.9rem; } .kpwa .install > span { display:none; } .kpwa .install .btn { margin:0; width:auto; min-height:44px; padding:0 16px; }
