/* Welcome preview only. Do not copy back into the live app. */
html, body{
  height:100%;
  margin:0;
}
body.welcome-preview{
  min-height:100dvh;
  padding:0;
  display:flex;
  justify-content:center;
  align-items:stretch;
}
#app{
  width:100%;
  max-width:390px;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  position:relative;
  overflow:hidden;
}
@media (min-width:520px){
  body.welcome-preview{
    align-items:center;
    padding:36px 16px;
  }
  #app{
    min-height:844px;
    height:844px;
    max-height:844px;
    border-radius:28px;
    box-shadow:0 18px 50px rgba(13,20,36,.16), 0 0 0 1px rgba(13,20,36,.08);
    background-color:var(--paper);
    background-image:
      radial-gradient(ellipse 90% 55% at 8% -8%, var(--mesh-a) 0%, transparent 58%),
      radial-gradient(ellipse 70% 50% at 98% 0%, var(--mesh-b) 0%, transparent 52%),
      radial-gradient(ellipse 65% 45% at 88% 100%, var(--mesh-c) 0%, transparent 52%),
      radial-gradient(ellipse 55% 40% at 0% 85%, var(--mesh-a) 0%, transparent 50%);
  }
}

.welcome{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:52px 0 24px;
  box-sizing:border-box;
}
.welcome .homehero{
  padding:0 16px 0;
  text-align:center;
}
.welcome .homehero h2{
  margin:8px 8px 10px;
  font-size:26px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.03em;
  color:var(--ink);
}
.welcome .homehero .lede{
  margin:0 auto 0;
  max-width:320px;
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
}

.welcome-mid{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:0;
  margin:8px 0 0;
}
.wcarousel{
  overflow:hidden;
  touch-action:pan-y;
}
.wcarousel-track{
  display:flex;
  gap:12px;
  padding:4px 16px 8px;
  box-sizing:border-box;
  will-change:transform;
}
.wcard{
  flex:0 0 280px;
  width:280px;
  height:178px;
  margin:0;
  padding:18px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  text-align:left;
  border-radius:16px;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  transition:transform .15s ease, box-shadow .15s ease;
}
.wcard:active{cursor:grabbing;transform:scale(.98)}
.wcard .ricon{
  width:40px;
  height:40px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,108,255,.10);
  color:var(--accent);
  flex:none;
}
.wcard .ricon .ico{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.wcard h3{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.25;
  color:var(--ink);
}
.wcard p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
}
.wdots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:12px 0 0;
  min-height:10px;
}
.wdots button{
  display:block;
  width:8px;
  height:8px;
  min-width:8px;
  min-height:8px;
  padding:0;
  border:0;
  border-radius:99px;
  background:rgba(13,20,36,.18);
  cursor:pointer;
  transition:width .2s ease, background .2s ease;
}
.wdots button.on{
  width:22px;
  min-width:22px;
  background:var(--accent);
}

.see-ex{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:6px 16px 0;
  color:var(--accent-text);
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  text-align:center;
  background:none;
  border:0;
  cursor:pointer;
  width:calc(100% - 32px);
}
.see-ex:active{opacity:.7;transform:scale(.98)}

.welcome-actions{
  width:100%;
  max-width:360px;
  margin:10px auto 0;
  padding:0;
  box-sizing:border-box;
}
.account-reason{
  margin:0 auto 8px;
  max-width:360px;
  padding:0 8px;
  text-align:center;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.4;
}
.account-reason.pulse{
  animation:reasonPulse .7s ease;
  color:var(--ink);
}
@keyframes reasonPulse{
  0%{transform:scale(1)}
  40%{transform:scale(1.03)}
  100%{transform:scale(1)}
}

/* Example teaser */
.example{
  padding:0 16px;
  display:none;
}
.welcome.is-example .wcarousel,
.welcome.is-example .wdots{display:none}
.welcome.is-example .example{display:block}
.ex-card{
  margin:0;
  padding:18px 16px 16px;
  border-radius:16px;
  text-align:center;
}
.ex-kicker{
  margin:0 0 2px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.ex-card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}
.ringwrap{
  position:relative;
  width:120px;
  height:120px;
  margin:0 auto 6px;
}
.ringwrap svg{display:block;width:120px;height:120px}
.ringarc{
  transition:stroke-dasharray 1s cubic-bezier(.2,.8,.2,1);
}
.ringwrap .rc{
  position:absolute;
  inset:0;
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:1px;
  padding-top:38px;
  pointer-events:none;
}
.ringwrap .rc b{
  font-size:36px;
  font-weight:750;
  letter-spacing:-.04em;
  line-height:1;
  color:var(--ink);
}
.ringwrap .rc small{
  font-size:14px;
  font-weight:650;
  color:var(--muted);
}
.ex-verdict{
  margin:0 0 12px;
  font-size:14px;
  font-weight:650;
  color:var(--ink);
}
.ex-owner{
  margin:0 0 12px;
  font-size:13.5px;
  line-height:1.4;
  color:var(--muted);
}
.ex-fact{
  margin:0 0 10px;
  font-size:14px;
  font-weight:650;
  line-height:1.35;
  color:var(--ink);
}
.ex-flags{
  display:flex;
  justify-content:center;
  gap:16px;
  margin:0 0 8px;
}
.ex-flag{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-width:88px;
  padding:8px 8px 6px;
  border:0;
  background:transparent;
  cursor:pointer;
  font:inherit;
  color:inherit;
  border-radius:12px;
}
.ex-flag:active{background:rgba(10,108,255,.08);transform:scale(.98)}
.ex-flag img.flag{
  width:72px;
  height:48px;
  border-radius:6px;
  box-shadow:0 0 0 1px rgba(13,20,36,.10),0 4px 12px rgba(13,20,36,.12);
  object-fit:cover;
  display:block;
}
.ex-flag span{
  font-size:13px;
  line-height:1.3;
  font-weight:650;
  color:var(--ink);
}
.ex-note{
  margin:0;
  font-size:12.5px;
  line-height:1.4;
  color:var(--muted);
}
.ex-pop{
  display:none;
  margin:8px 0 0;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(10,108,255,.08);
  color:var(--ink);
  font-size:13.5px;
  line-height:1.4;
  text-align:left;
}
.ex-pop.on{display:block}
.ex-pop b{font-weight:700}

/* Auth */
.auth{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:0 16px 28px;
}
#top.mock-top{position:relative}
#backBtn.mock-back{display:inline-flex}
.auth-methods{
  max-width:360px;
  margin:8px auto 0;
  width:100%;
}
.auth-methods .btn{gap:10px}
.auth-methods .btn svg{width:18px;height:18px}
.auth-methods .btn .apple-mark{fill:currentColor;stroke:none;width:18px;height:18px}
.auth-note{
  margin:16px 4px 0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.45;
  text-align:center;
}
.auth-toast{
  position:absolute;
  left:16px;
  right:16px;
  bottom:24px;
  padding:12px 14px;
  border-radius:14px;
  background:#0D1424;
  color:#fff;
  font-size:14px;
  font-weight:500;
  text-align:center;
  box-shadow:0 12px 30px rgba(13,20,36,.2);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:40;
}
.auth-toast.on{opacity:1;transform:none}

body.is-auth .welcome{display:none}
body.is-auth .auth{display:flex}
.auth{display:none}

@media (prefers-reduced-motion:reduce){
  .wcard,.wdots button,.ringarc,.auth-toast,.account-reason.pulse,.btn{
    transition:none!important;
    animation:none!important;
  }
}

.welcome.is-example{padding-top:36px}
.welcome.is-example .homehero .lede{display:none}
.welcome.is-example .homehero h2{margin:6px 8px 4px;font-size:24px}
.welcome.is-example .welcome-mid{justify-content:flex-start;margin-top:10px}
.welcome.is-example .ex-card{padding:14px 14px 12px}
.welcome.is-example .ex-card h3{margin-bottom:6px;font-size:17px}
.welcome.is-example .ringwrap{width:100px;height:100px;margin-bottom:2px}
.welcome.is-example .ringwrap svg{width:100px;height:100px}
.welcome.is-example .ringwrap .rc{padding-top:30px}
.welcome.is-example .ringwrap .rc b{font-size:30px}
.welcome.is-example .ringwrap .rc small{font-size:12px}
.welcome.is-example .ex-verdict{margin:0 0 6px}
.welcome.is-example .ex-owner{margin:0 0 8px}
.welcome.is-example .ex-fact{margin:0 0 8px}
.welcome.is-example .ex-flags{margin:0 0 6px}
.welcome.is-example .ex-flag img.flag{width:64px;height:42px}
.welcome.is-example .see-ex{margin-top:2px;margin-bottom:0}
.account-reason{margin:4px auto 8px}
