/* Guest pages — phone first, fills the whole screen. */
.guest{--hero1:#9a3412;--hero2:#ea580c;--app-h-def:100dvh;background:var(--bg)}
.gapp{min-height:100vh;min-height:var(--app-h,100dvh);display:flex;flex-direction:column}

/* ----- hero (top coloured band) ----- */
.hero{position:relative;overflow:hidden;color:#fff;text-align:center;
  background:radial-gradient(120% 90% at 85% 0%,rgba(255,255,255,.18),transparent 55%),linear-gradient(160deg,var(--hero1),var(--hero2));
  padding:28px 20px 46px;border-radius:0 0 28px 28px;transition:padding .25s}
.hero::after{content:"";position:absolute;inset:auto -10% -40px -10%;height:80px;background:rgba(255,255,255,.07);border-radius:50%}
.hero .tag{display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.08em;background:rgba(255,255,255,.18);border-radius:99px;padding:4px 12px;margin-bottom:10px}
.hero h1{font-size:clamp(1.6rem,7vw,2.4rem);line-height:1.2;margin:0 0 8px;font-weight:800}
.hero p{margin:0 auto;max-width:26em;font-size:1.02rem;opacity:.92}
.compact .hero{padding:14px 16px 16px;border-radius:0 0 20px 20px}
.compact .hero h1{font-size:1.25rem;margin:0}
.compact .hero .tag,.compact .hero p{display:none}

/* ----- screens ----- */
.screen{flex:1 0 auto;display:flex;flex-direction:column;width:100%;max-width:560px;margin:0 auto;padding:0 16px calc(18px + var(--safe-b))}
.screen.wide{max-width:1200px;padding:0 6px calc(96px + var(--safe-b))}
.screen.mid{justify-content:center;text-align:center;padding-top:24px}

/* start: illustration + steps, buttons pushed to bottom (thumb zone) */
.ill{display:flex;justify-content:center;margin:-30px 0 6px;position:relative;z-index:1}
.ring{width:118px;height:118px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:3.2rem;
  box-shadow:0 10px 30px rgba(154,52,18,.25),0 0 0 8px rgba(255,255,255,.7)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 18px;text-align:center}
.step{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 6px;font-size:.85rem;line-height:1.3}
.step b{display:grid;place-items:center;width:26px;height:26px;margin:0 auto 4px;border-radius:50%;background:#fff1e8;color:var(--pri);font-size:.85rem}
.cta{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.cta .btn{min-height:60px;font-size:1.12rem;border-radius:16px;width:100%}
.cta .btn.primary{box-shadow:0 8px 20px rgba(194,65,12,.3)}
.tipgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 10px}
.tip{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 10px;font-size:.86rem;line-height:1.3}
.tip span:first-child{font-size:1.2rem}
.priv{display:flex;gap:8px;align-items:flex-start;font-size:.84rem;color:var(--muted);margin:4px 2px 0}

/* busy */
.scan{position:relative;width:150px;height:150px;margin:0 auto 18px}
.scan .ring{width:150px;height:150px;font-size:4rem}
.scan::before{content:"";position:absolute;inset:-10px;border-radius:50%;border:4px solid transparent;border-top-color:var(--pri);border-right-color:var(--pri);animation:spin 1.1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.busy-t{font-size:1.1rem;font-weight:600}
.big-ic{font-size:3.6rem;margin-bottom:8px}
.msg-t{font-size:1.05rem;margin:0 0 22px}
.screen.mid .btn{min-height:58px;width:100%;font-size:1.08rem;border-radius:16px}

/* results */
.rhead{text-align:center;margin:14px 0 12px}
.rhead p{margin:0;font-weight:800;font-size:1.25rem}
.rhead small{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
@media (min-width:600px){.grid{grid-template-columns:repeat(4,1fr);gap:6px}}
@media (min-width:900px){.grid{grid-template-columns:repeat(5,1fr)}}
@media (min-width:1200px){.grid{grid-template-columns:repeat(6,1fr)}}
.grid button{padding:0;border:0;background:#e7e2d8;aspect-ratio:1/1;border-radius:4px;overflow:hidden;cursor:pointer;touch-action:manipulation}
@media (min-width:600px){.grid button{border-radius:10px}}
.grid img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .25s}
.grid img.loaded{opacity:1}

/* sticky bottom actions on results */
.actions{position:fixed;left:0;right:0;bottom:0;z-index:4;display:flex;gap:8px;padding:10px 12px calc(10px + var(--safe-b));
  background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.actions .btn{flex:1;min-height:52px;border-radius:14px}
.actions .btn.primary{flex:2}
@media (min-width:600px){.actions{justify-content:center}.actions .btn,.actions .btn.primary{flex:0 1 280px}}

/* simple message page (closed link etc.) */
.mpage .screen.mid{padding-top:30px}

/* larger screens: keep the phone feel, centred */
@media (min-width:700px){
  .hero{padding:44px 20px 60px}
  .ill{margin-top:-40px}
}
